[llvm-commits] [llvm] r95153 - /llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
Chris Lattner
sabre at nondot.org
Tue Feb 2 14:58:13 PST 2010
Author: lattner
Date: Tue Feb 2 16:58:13 2010
New Revision: 95153
URL: http://llvm.org/viewvc/llvm-project?rev=95153&view=rev
Log:
simplify getVerboseAsm
Modified:
llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
Modified: llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp?rev=95153&r1=95152&r2=95153&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp (original)
+++ llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Tue Feb 2 16:58:13 2010
@@ -66,12 +66,12 @@
AsmVerbose("asm-verbose", cl::desc("Add comments to directives."),
cl::init(cl::BOU_UNSET));
-static bool getVerboseAsm(bool VDef) {
+static bool getVerboseAsm() {
switch (AsmVerbose) {
- default:
- case cl::BOU_UNSET: return VDef;
- case cl::BOU_TRUE: return true;
- case cl::BOU_FALSE: return false;
+ default:
+ case cl::BOU_UNSET: return TargetMachine::getAsmVerbosityDefault();
+ case cl::BOU_TRUE: return true;
+ case cl::BOU_FALSE: return false;
}
}
@@ -123,7 +123,7 @@
case CGFT_AssemblyFile: {
FunctionPass *Printer =
getTarget().createAsmPrinter(Out, *this, getMCAsmInfo(),
- getVerboseAsm(getAsmVerbosityDefault()));
+ getVerboseAsm());
if (Printer == 0) return CGFT_ErrorOccurred;
PM.add(Printer);
break;
More information about the llvm-commits
mailing list