r209261 - Update for paired llvm commit with AsmVerbose.
Eric Christopher
echristo at gmail.com
Tue May 20 17:00:03 PDT 2014
Author: echristo
Date: Tue May 20 19:00:03 2014
New Revision: 209261
URL: http://llvm.org/viewvc/llvm-project?rev=209261&view=rev
Log:
Update for paired llvm commit with AsmVerbose.
Modified:
cfe/trunk/lib/CodeGen/BackendUtil.cpp
Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/BackendUtil.cpp?rev=209261&r1=209260&r2=209261&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Tue May 20 19:00:03 2014
@@ -370,12 +370,6 @@ TargetMachine *EmitAssemblyHelper::Creat
return 0;
}
- // FIXME: Expose these capabilities via actual APIs!!!! Aside from just
- // being gross, this is also totally broken if we ever care about
- // concurrency.
-
- TargetMachine::setAsmVerbosityDefault(CodeGenOpts.AsmVerbose);
-
unsigned CodeModel =
llvm::StringSwitch<unsigned>(CodeGenOpts.CodeModel)
.Case("small", llvm::CodeModel::Small)
@@ -495,6 +489,7 @@ TargetMachine *EmitAssemblyHelper::Creat
Options.MCOptions.MCSaveTempLabels = CodeGenOpts.SaveTempLabels;
Options.MCOptions.MCUseDwarfDirectory = !CodeGenOpts.NoDwarfDirectoryAsm;
Options.MCOptions.MCNoExecStack = CodeGenOpts.NoExecStack;
+ Options.MCOptions.AsmVerbose = CodeGenOpts.AsmVerbose;
TargetMachine *TM = TheTarget->createTargetMachine(Triple, TargetOpts.CPU,
FeaturesStr, Options,
More information about the cfe-commits
mailing list