[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetMachine.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 8 19:48:01 PST 2004
Changes in directory llvm/lib/Target/X86:
X86TargetMachine.cpp updated: 1.45 -> 1.46
---
Log message:
Add a new (hidden) option that is useful for profiling.
---
Diffs of the changes: (+5 -1)
Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.45 llvm/lib/Target/X86/X86TargetMachine.cpp:1.46
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.45 Wed Feb 4 15:41:01 2004
+++ llvm/lib/Target/X86/X86TargetMachine.cpp Sun Feb 8 19:47:10 2004
@@ -32,6 +32,9 @@
cl::opt<bool> NoSSAPeephole("disable-ssa-peephole", cl::init(true),
cl::desc("Disable the ssa-based peephole optimizer "
"(defaults to disabled)"));
+ cl::opt<bool> DisableOutput("disable-x86-llc-output", cl::Hidden,
+ cl::desc("Disable the X86 asm printer, for use "
+ "when profiling the code generator."));
}
// allocateX86TargetMachine - Allocate and return a subclass of TargetMachine
@@ -98,7 +101,8 @@
if (PrintCode) // Print the register-allocated code
PM.add(createX86CodePrinterPass(std::cerr, *this));
- PM.add(createX86CodePrinterPass(Out, *this));
+ if (!DisableOutput)
+ PM.add(createX86CodePrinterPass(Out, *this));
// Delete machine code for this function
PM.add(createMachineCodeDeleter());
More information about the llvm-commits
mailing list