mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
added Mapping and Function Pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3251 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -12,6 +12,8 @@
|
|||||||
#include "llvm/CodeGen/MachineCodeForInstruction.h"
|
#include "llvm/CodeGen/MachineCodeForInstruction.h"
|
||||||
#include "llvm/CodeGen/MachineCodeForMethod.h"
|
#include "llvm/CodeGen/MachineCodeForMethod.h"
|
||||||
#include "llvm/CodeGen/RegisterAllocation.h"
|
#include "llvm/CodeGen/RegisterAllocation.h"
|
||||||
|
#include "llvm/Reoptimizer/Mapping/MappingInfo.h"
|
||||||
|
#include "llvm/Reoptimizer/Mapping/FInfo.h"
|
||||||
#include "llvm/Function.h"
|
#include "llvm/Function.h"
|
||||||
#include "llvm/BasicBlock.h"
|
#include "llvm/BasicBlock.h"
|
||||||
#include "llvm/PassManager.h"
|
#include "llvm/PassManager.h"
|
||||||
@@ -180,7 +182,7 @@ void UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) {
|
|||||||
|
|
||||||
PM.add(createPrologEpilogCodeInserter(*this));
|
PM.add(createPrologEpilogCodeInserter(*this));
|
||||||
|
|
||||||
//PM.add(MappingInfoForFunction(Out));
|
PM.add(MappingInfoForFunction(Out));
|
||||||
|
|
||||||
// Output assembly language to the .s file. Assembly emission is split into
|
// Output assembly language to the .s file. Assembly emission is split into
|
||||||
// two parts: Function output and Global value output. This is because
|
// 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
|
// Emit bytecode to the sparc assembly file into its special section next
|
||||||
PM.add(getEmitBytecodeToAsmPass(Out));
|
PM.add(getEmitBytecodeToAsmPass(Out));
|
||||||
|
PM.add(getFunctionInfo(Out));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user