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 /lib/CodeGen/LLVMTargetMachine.cpp | |
parent | ed6718d2282b78602c0f7f112c498daa27e052bd (diff) | |
download | llvm-9f5066c72c0aa77cc3a0a26f6e9f38af5daeeccb.tar.gz llvm-9f5066c72c0aa77cc3a0a26f6e9f38af5daeeccb.tar.bz2 llvm-9f5066c72c0aa77cc3a0a26f6e9f38af5daeeccb.tar.xz |
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 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 51cd9d6861..6c217cd232 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -53,10 +53,6 @@ static cl::opt<cl::boolOrDefault> AsmVerbose("asm-verbose", cl::desc("Add comments to directives."), cl::init(cl::BOU_UNSET)); -static cl::opt<bool> -NoIntegratedAssembler("no-integrated-as", cl::Hidden, - cl::desc("Disable integrated assembler")); - static bool getVerboseAsm() { switch (AsmVerbose) { case cl::BOU_UNSET: return TargetMachine::getAsmVerbosityDefault(); @@ -77,7 +73,7 @@ void LLVMTargetMachine::initAsmInfo() { "Make sure you include the correct TargetSelect.h" "and that InitializeAllTargetMCs() is being invoked!"); - if (NoIntegratedAssembler) + if (Options.DisableIntegratedAS) TmpAsmInfo->setUseIntegratedAssembler(false); AsmInfo = TmpAsmInfo; |