CodeGen still defaults to non-verbose asm, but llc now overrides it and default to verbose.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67668 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng
2009-03-25 01:47:28 +00:00
parent 7db860d4de
commit 42bf74be14
55 changed files with 166 additions and 134 deletions

View File

@@ -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