diff options
| author | Eric Christopher <echristo@gmail.com> | 2014-05-20 23:59:50 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2014-05-20 23:59:50 +0000 |
| commit | eb719728877b4f32534816fcacda4b4ee45b0d83 (patch) | |
| tree | a8b3327fbf4feb679578705e1763c47f110bba44 /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
| parent | 5719614b775c26fe2e249d9abacaf1f1ed126dd8 (diff) | |
| download | bcm5719-llvm-eb719728877b4f32534816fcacda4b4ee45b0d83.tar.gz bcm5719-llvm-eb719728877b4f32534816fcacda4b4ee45b0d83.zip | |
Move the verbose asm option to be part of the options struct and
set appropriately.
llvm-svn: 209258
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index c8211b76be4..a5ac0578ab8 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -43,19 +43,6 @@ static cl::opt<cl::boolOrDefault> EnableFastISelOption("fast-isel", cl::Hidden, cl::desc("Enable the \"fast\" instruction selector")); -static cl::opt<cl::boolOrDefault> -AsmVerbose("asm-verbose", cl::desc("Add comments to directives."), - cl::init(cl::BOU_UNSET)); - -static bool getVerboseAsm() { - switch (AsmVerbose) { - case cl::BOU_UNSET: return TargetMachine::getAsmVerbosityDefault(); - case cl::BOU_TRUE: return true; - case cl::BOU_FALSE: return false; - } - llvm_unreachable("Invalid verbose asm state"); -} - void LLVMTargetMachine::initAsmInfo() { MCAsmInfo *TmpAsmInfo = TheTarget.createMCAsmInfo(*getRegisterInfo(), TargetTriple); @@ -188,8 +175,9 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM, MCAsmBackend *MAB = getTarget().createMCAsmBackend(MRI, getTargetTriple(), TargetCPU); MCStreamer *S = getTarget().createAsmStreamer( - *Context, Out, getVerboseAsm(), Options.MCOptions.MCUseDwarfDirectory, - InstPrinter, MCE, MAB, Options.MCOptions.ShowMCInst); + *Context, Out, Options.MCOptions.AsmVerbose, + Options.MCOptions.MCUseDwarfDirectory, InstPrinter, MCE, MAB, + Options.MCOptions.ShowMCInst); AsmStreamer.reset(S); break; } |

