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 | 5acd166ff52fd34824fec046308631998e87626c (patch) | |
tree | 097fa8df9a8f679211a1f0aa02479548e9c81b49 /lib/Target | |
parent | b8a45c9fe9a3044311741e16d39a89aa7fc98000 (diff) | |
download | external_llvm-5acd166ff52fd34824fec046308631998e87626c.zip external_llvm-5acd166ff52fd34824fec046308631998e87626c.tar.gz external_llvm-5acd166ff52fd34824fec046308631998e87626c.tar.bz2 |
added Mapping and Function Pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3251 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/SparcV9/SparcV9TargetMachine.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp index e9f4b37..7ec76fc 100644 --- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp +++ b/lib/Target/SparcV9/SparcV9TargetMachine.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)); + } |