mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Added saveBBreferences() for BasicBlock resolution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6451 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -158,9 +158,7 @@ namespace {
|
||||
}
|
||||
}
|
||||
void emitPCRelativeDisp(Value *V) {
|
||||
// put block in mapping BB -> { instr, address }. when BB is beginning to
|
||||
// output, find instr, set disp, overwrite instr at addr using the
|
||||
// unsigned value gotten from emitter
|
||||
if (MCE) MCE->emitPCRelativeDisp(V);
|
||||
}
|
||||
|
||||
void emitGlobalAddress(GlobalValue *V, bool isPCRelative) {
|
||||
@@ -173,9 +171,15 @@ namespace {
|
||||
void emitFunctionConstantValueAddress(unsigned ConstantNum, int Offset) {
|
||||
if (MCE) MCE->emitFunctionConstantValueAddress(ConstantNum, Offset);
|
||||
}
|
||||
|
||||
virtual void saveBBreference(BasicBlock* BB, MachineInstr &MI) {
|
||||
if (MCE) MCE->saveBBreference(BB, MI);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
MachineCodeEmitter *MachineCodeEmitter::createFilePrinterMachineCodeEmitter(MachineCodeEmitter &MCE) {
|
||||
MachineCodeEmitter *MachineCodeEmitter::createFilePrinterMachineCodeEmitter
|
||||
(MachineCodeEmitter &MCE) {
|
||||
return new FilePrinterMachineCodeEmitter(MCE, std::cerr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user