diff options
author | Mehwish Nagda <nagda@cs.uiuc.edu> | 2002-08-05 23:23:19 +0000 |
---|---|---|
committer | Mehwish Nagda <nagda@cs.uiuc.edu> | 2002-08-05 23:23:19 +0000 |
commit | 428a0ba612dd94431c3270867093478959a8de36 (patch) | |
tree | 8f2b6cd3892c1149dbd46ef7304013af9468b620 /llvm/lib/Target/Sparc/Sparc.cpp | |
parent | e93d33cc240406eb2da1f5c9289ba9327b4a3ff2 (diff) | |
download | bcm5719-llvm-428a0ba612dd94431c3270867093478959a8de36.tar.gz bcm5719-llvm-428a0ba612dd94431c3270867093478959a8de36.zip |
added Mapping and Function Pass
llvm-svn: 3251
Diffstat (limited to 'llvm/lib/Target/Sparc/Sparc.cpp')
-rw-r--r-- | llvm/lib/Target/Sparc/Sparc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Target/Sparc/Sparc.cpp b/llvm/lib/Target/Sparc/Sparc.cpp index e9f4b37dc26..7ec76fc0529 100644 --- a/llvm/lib/Target/Sparc/Sparc.cpp +++ b/llvm/lib/Target/Sparc/Sparc.cpp @@ -12,6 +12,8 @@ #include "llvm/CodeGen/MachineCodeForInstruction.h" #include "llvm/CodeGen/MachineCodeForMethod.h" #include "llvm/CodeGen/RegisterAllocation.h" +#include "llvm/Reoptimizer/Mapping/MappingInfo.h" +#include "llvm/Reoptimizer/Mapping/FInfo.h" #include "llvm/Function.h" #include "llvm/BasicBlock.h" #include "llvm/PassManager.h" @@ -180,7 +182,7 @@ void UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) { PM.add(createPrologEpilogCodeInserter(*this)); - //PM.add(MappingInfoForFunction(Out)); + 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 @@ -196,5 +198,7 @@ void UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) { // Emit bytecode to the sparc assembly file into its special section next PM.add(getEmitBytecodeToAsmPass(Out)); + PM.add(getFunctionInfo(Out)); + } |