aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetMachine.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-07-20 21:56:13 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-07-20 21:56:13 +0000
commit8bd6035750f1b290832a3b1c90766d9b45ed8d6b (patch)
treeeb2e4ac32c323f3d63e4fc40edf78a51f38d4d11 /include/llvm/Target/TargetMachine.h
parentd485dc3d77bc6c7fa498060123fdb5363afc3264 (diff)
downloadexternal_llvm-8bd6035750f1b290832a3b1c90766d9b45ed8d6b.zip
external_llvm-8bd6035750f1b290832a3b1c90766d9b45ed8d6b.tar.gz
external_llvm-8bd6035750f1b290832a3b1c90766d9b45ed8d6b.tar.bz2
Added -print-emitted-asm to print out JIT generated asm to cerr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetMachine.h')
-rw-r--r--include/llvm/Target/TargetMachine.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h
index e7f211b..d193ed4 100644
--- a/include/llvm/Target/TargetMachine.h
+++ b/include/llvm/Target/TargetMachine.h
@@ -306,17 +306,18 @@ public:
/// addCodeEmitter - This pass should be overridden by the target to add a
/// code emitter, if supported. If this is not supported, 'true' should be
- /// returned.
- virtual bool addCodeEmitter(FunctionPassManager &PM, bool Fast,
+ /// returned. If DumpAsm is true, the generated assembly is printed to cerr.
+ virtual bool addCodeEmitter(FunctionPassManager &PM, bool Fast, bool DumpAsm,
MachineCodeEmitter &MCE) {
return true;
}
/// addSimpleCodeEmitter - This pass should be overridden by the target to add
/// a code emitter (without setting flags), if supported. If this is not
- /// supported, 'true' should be returned.
+ /// supported, 'true' should be returned. If DumpAsm is true, the generated
+ /// assembly is printed to cerr.
virtual bool addSimpleCodeEmitter(FunctionPassManager &PM, bool Fast,
- MachineCodeEmitter &MCE) {
+ bool DumpAsm, MachineCodeEmitter &MCE) {
return true;
}