diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-03-25 01:47:28 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-03-25 01:47:28 +0000 |
commit | 5e5a63cf8f9ba2c46239961d0d4443795790eab4 (patch) | |
tree | 5b04a3c2ad679084ff9dd30e6ff436bb1946e60d /llvm/lib/Target/TargetMachine.cpp | |
parent | 9966403e900ce6c78c1d1e9dbb54337b0a84ea41 (diff) | |
download | bcm5719-llvm-5e5a63cf8f9ba2c46239961d0d4443795790eab4.tar.gz bcm5719-llvm-5e5a63cf8f9ba2c46239961d0d4443795790eab4.zip |
CodeGen still defaults to non-verbose asm, but llc now overrides it and default to verbose.
llvm-svn: 67668
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index 870fe61bc81..1b042ddef9b 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -39,10 +39,10 @@ namespace llvm { bool PerformTailCallOpt; unsigned StackAlignment; bool RealignStack; - bool VerboseAsm; bool DisableJumpTables; bool StrongPHIElim; bool DisableRedZone; + bool AsmVerbosityDefault(false); } static cl::opt<bool, true> @@ -154,10 +154,6 @@ EnableRealignStack("realign-stack", cl::location(RealignStack), cl::init(true)); static cl::opt<bool, true> -AsmVerbose("asm-verbose", cl::desc("Add comments to directives."), - cl::location(VerboseAsm), - cl::init(false)); -static cl::opt<bool, true> DisableSwitchTables(cl::Hidden, "disable-jump-tables", cl::desc("Do not generate jump tables."), cl::location(DisableJumpTables), @@ -203,6 +199,14 @@ void TargetMachine::setCodeModel(CodeModel::Model Model) { CMModel = Model; } +bool TargetMachine::getAsmVerbosityDefault() { + return AsmVerbosityDefault; +} + +void TargetMachine::setAsmVerbosityDefault(bool V) { + AsmVerbosityDefault = V; +} + namespace llvm { /// LessPreciseFPMAD - This flag return true when -enable-fp-mad option /// is specified on the command line. When this flag is off(default), the |