diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-07-20 21:56:13 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-07-20 21:56:13 +0000 |
commit | 775472112da257a6558fb583d71aa850860dd8a1 (patch) | |
tree | eb2e4ac32c323f3d63e4fc40edf78a51f38d4d11 /include/llvm/Target/TargetMachine.h | |
parent | 0012b2eb7564542269c8d266a61c8136a92ed75c (diff) | |
download | external_llvm-775472112da257a6558fb583d71aa850860dd8a1.zip external_llvm-775472112da257a6558fb583d71aa850860dd8a1.tar.gz external_llvm-775472112da257a6558fb583d71aa850860dd8a1.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.h | 9 |
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; } |