Make it possible to pass LLVM options from environment variables.

These options are parsed like commandline options to llc.
This commit is contained in:
Siu Kwan Lam 2012-08-26 21:00:29 -07:00
commit 38d4de35bb
3 changed files with 50 additions and 1 deletions

View file

@ -2147,7 +2147,8 @@ def inline_function(call):
check_is_value(call)
return _core.LLVMInlineFunction(call.ptr)
def parse_environment_options(progname, envname):
_core.LLVMParseEnvOpts(progname, envname)
#===----------------------------------------------------------------------===
# Initialization
@ -2178,3 +2179,4 @@ if True: # use PTX?
except AttributeError:
pass