summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMehwish Nagda <nagda@cs.uiuc.edu>2002-07-15 23:58:21 +0000
committerMehwish Nagda <nagda@cs.uiuc.edu>2002-07-15 23:58:21 +0000
commit634cd1c4b4dbc8e2b7392109837054d19e7a3529 (patch)
tree928fb37a369e66cb23c01470a8bfe3601f2bbca5 /lib
parent0226fdb6e7fa88321aa43a8824532be3d85b03d9 (diff)
downloadllvm-634cd1c4b4dbc8e2b7392109837054d19e7a3529.tar.gz
llvm-634cd1c4b4dbc8e2b7392109837054d19e7a3529.tar.bz2
llvm-634cd1c4b4dbc8e2b7392109837054d19e7a3529.tar.xz
Added the Mapping Pass to out put Mapping Info to .s file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2913 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/SparcV9/SparcV9TargetMachine.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index be6e9f4670..a3dd8c8835 100644
--- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp
+++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
@@ -12,6 +12,7 @@
#include "llvm/CodeGen/MachineCodeForInstruction.h"
#include "llvm/CodeGen/MachineCodeForMethod.h"
#include "llvm/CodeGen/RegisterAllocation.h"
+#include "llvm/CodeGen/MappingInfo.h"
#include "llvm/Function.h"
#include "llvm/BasicBlock.h"
#include "llvm/PassManager.h"
@@ -156,6 +157,7 @@ public:
}
};
+
struct FreeMachineCodeForFunction : public FunctionPass {
const char *getPassName() const { return "Sparc FreeMachineCodeForFunction"; }
@@ -175,8 +177,6 @@ struct FreeMachineCodeForFunction : public FunctionPass {
}
};
-
-
// addPassesToEmitAssembly - This method controls the entire code generation
// process for the ultra sparc.
//
@@ -196,7 +196,9 @@ void UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) {
//PM.add(new RemoveRedundantOps()); // operations with %g0, NOP, etc.
PM.add(createPrologEpilogCodeInserter(*this));
-
+
+ PM.add(MappingInfoForFunction(Out));
+
// Output assembly language to the .s file. Assembly emission is split into
// two parts: Function output and Global value output. This is because
// function output is pipelined with all of the rest of code generation stuff,
@@ -212,3 +214,4 @@ void UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) {
// Emit bytecode to the sparc assembly file into its special section next
PM.add(getEmitBytecodeToAsmPass(Out));
}
+