diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-21 03:13:54 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-21 03:13:54 +0000 |
commit | 9f5066c72c0aa77cc3a0a26f6e9f38af5daeeccb (patch) | |
tree | 3bc7ba3a97c3a872a874c48072fc961becfdc544 /tools/llc/llc.cpp | |
parent | ed6718d2282b78602c0f7f112c498daa27e052bd (diff) |
Make DisableIntegratedAS a TargetOption.
This replaces the old NoIntegratedAssembler with at TargetOption. This is
more flexible and will be used to forward clang's -no-integrated-as option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201836 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc/llc.cpp')
-rw-r--r-- | tools/llc/llc.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 435d4e22b78..f8f02831913 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -58,6 +58,10 @@ TimeCompilations("time-compilations", cl::Hidden, cl::init(1u), cl::value_desc("N"), cl::desc("Repeat compilation N times for timing")); +static cl::opt<bool> +NoIntegratedAssembler("no-integrated-as", cl::Hidden, + cl::desc("Disable integrated assembler")); + // Determine optimization level. static cl::opt<char> OptLevel("O", @@ -260,6 +264,7 @@ static int compileModule(char **argv, LLVMContext &Context) { } TargetOptions Options = InitTargetOptionsFromCodeGenFlags(); + Options.DisableIntegratedAS = NoIntegratedAssembler; OwningPtr<TargetMachine> target(TheTarget->createTargetMachine(TheTriple.getTriple(), |