diff options
author | Eric Christopher <echristo@gmail.com> | 2014-05-15 23:27:49 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-05-15 23:27:49 +0000 |
commit | 6d22500de37947705c62068471fe56b4a19ec608 (patch) | |
tree | 924a878adfdb6af2095c63e6135c66315926b9e8 /lib/CodeGen/LLVMTargetMachine.cpp | |
parent | 8fde27bceb0ab80157d99d34ebeba25c2fe414c9 (diff) | |
download | llvm-6d22500de37947705c62068471fe56b4a19ec608.tar.gz llvm-6d22500de37947705c62068471fe56b4a19ec608.tar.bz2 llvm-6d22500de37947705c62068471fe56b4a19ec608.tar.xz |
Move more MC options into the MCTargetOptions structure.
No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 85d10953d9..f453c627be 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -43,11 +43,6 @@ static cl::opt<cl::boolOrDefault> EnableFastISelOption("fast-isel", cl::Hidden, cl::desc("Enable the \"fast\" instruction selector")); -static cl::opt<bool> ShowMCEncoding("show-mc-encoding", cl::Hidden, - cl::desc("Show encoding in .s output")); -static cl::opt<bool> ShowMCInst("show-mc-inst", cl::Hidden, - cl::desc("Show instruction structure in .s output")); - static cl::opt<cl::boolOrDefault> AsmVerbose("asm-verbose", cl::desc("Add comments to directives."), cl::init(cl::BOU_UNSET)); @@ -186,17 +181,14 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM, // Create a code emitter if asked to show the encoding. MCCodeEmitter *MCE = nullptr; - if (ShowMCEncoding) + if (Options.MCOptions.ShowMCEncoding) MCE = getTarget().createMCCodeEmitter(MII, MRI, STI, *Context); MCAsmBackend *MAB = getTarget().createMCAsmBackend(MRI, getTargetTriple(), TargetCPU); - MCStreamer *S = getTarget().createAsmStreamer(*Context, Out, - getVerboseAsm(), - hasMCUseDwarfDirectory(), - InstPrinter, - MCE, MAB, - ShowMCInst); + MCStreamer *S = getTarget().createAsmStreamer( + *Context, Out, getVerboseAsm(), hasMCUseDwarfDirectory(), InstPrinter, + MCE, MAB, Options.MCOptions.ShowMCInst); AsmStreamer.reset(S); break; } |