aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-06-03 05:03:01 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-06-03 05:03:01 +0000
commit582159569334c101fbc73c4735bfae817daccc91 (patch)
tree8188041305878315eaa6baaccaaf948f911cad1d /lib/Target
parent7d8793a3a5eeaf04afefaee036bf8dfd29be04b9 (diff)
downloadexternal_llvm-582159569334c101fbc73c4735bfae817daccc91.zip
external_llvm-582159569334c101fbc73c4735bfae817daccc91.tar.gz
external_llvm-582159569334c101fbc73c4735bfae817daccc91.tar.bz2
Add new mapping info pass, when EmitMappingInfo is on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13981 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/SparcV9/SparcV9TargetMachine.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index c088317..4c92105 100644
--- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp
+++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
@@ -179,8 +179,10 @@ SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out
if (!DisablePeephole)
PM.add(createPeepholeOptsPass(*this));
- if (EmitMappingInfo)
- PM.add(getMappingInfoAsmPrinterPass(Out));
+ if (EmitMappingInfo) {
+ PM.add(createInternalGlobalMapperPass());
+ PM.add(getMappingInfoAsmPrinterPass(Out));
+ }
// Output assembly language to the .s file. Assembly emission is split into
// two parts: Function output and Global value output. This is because