From: Brian Gaeke Date: Thu, 30 Sep 2004 20:20:01 +0000 (+0000) Subject: Make EmitMappingInfo into an "external location" option, so that it can be set X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=828c68a4ded51f8719aef9b9539cc49f446ec9a5;p=oota-llvm.git Make EmitMappingInfo into an "external location" option, so that it can be set or cleared externally. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16623 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp index 0851ef4bc99..3e0e8b931cc 100644 --- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp +++ b/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 DisableSched("disable-sched", cl::desc("Disable local scheduling pass")); @@ -54,7 +58,9 @@ namespace { cl::opt DisablePeephole("disable-peephole", cl::desc("Disable peephole optimization pass")); - cl::opt EmitMappingInfo("enable-maps", + cl::opt EmitMappingInfoOpt("enable-maps", + cl::location(EmitMappingInfo), + cl::init(false), cl::desc("Emit LLVM-to-MachineCode mapping info to assembly")); cl::opt DisableStrip("disable-strip",