diff options
| author | Brian Gaeke <gaeke@uiuc.edu> | 2004-09-30 20:20:01 +0000 |
|---|---|---|
| committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-09-30 20:20:01 +0000 |
| commit | dd9bb500ad9e9b0acfe6163d03552c00e271c064 (patch) | |
| tree | 3ec4582d892ea3878035cfde84bca665272d38a5 /llvm/lib/Target | |
| parent | 33e834ebb08f4ad72ab4fb57df293ae96aa69111 (diff) | |
| download | bcm5719-llvm-dd9bb500ad9e9b0acfe6163d03552c00e271c064.tar.gz bcm5719-llvm-dd9bb500ad9e9b0acfe6163d03552c00e271c064.zip | |
Make EmitMappingInfo into an "external location" option, so that it can be set
or cleared externally.
llvm-svn: 16623
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp index 0851ef4bc99..3e0e8b931cc 100644 --- a/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp +++ b/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp @@ -47,6 +47,10 @@ const TargetInstrDescriptor llvm::SparcV9MachineInstrDesc[] = { // Command line options to control choice of code generation passes. //--------------------------------------------------------------------------- +namespace llvm { + bool EmitMappingInfo = false; +} + namespace { cl::opt<bool> DisableSched("disable-sched", cl::desc("Disable local scheduling pass")); @@ -54,7 +58,9 @@ namespace { cl::opt<bool> DisablePeephole("disable-peephole", cl::desc("Disable peephole optimization pass")); - cl::opt<bool> EmitMappingInfo("enable-maps", + cl::opt<bool, true> EmitMappingInfoOpt("enable-maps", + cl::location(EmitMappingInfo), + cl::init(false), cl::desc("Emit LLVM-to-MachineCode mapping info to assembly")); cl::opt<bool> DisableStrip("disable-strip", |

