mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
inline a simple method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28083 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b4432f3d47
commit
93e5c284d7
@ -50,7 +50,6 @@ namespace {
|
||||
void emitInstruction(const MachineInstr &MI);
|
||||
|
||||
private:
|
||||
void emitBasicBlock(MachineBasicBlock &MBB);
|
||||
void emitPCRelativeBlockAddress(MachineBasicBlock *MBB);
|
||||
void emitPCRelativeValue(unsigned Address);
|
||||
void emitGlobalAddressForCall(GlobalValue *GV, bool isTailCall);
|
||||
@ -84,8 +83,13 @@ bool Emitter::runOnMachineFunction(MachineFunction &MF) {
|
||||
BBRefs.clear();
|
||||
|
||||
MCE.startFunction(MF);
|
||||
for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I)
|
||||
emitBasicBlock(*I);
|
||||
for (MachineFunction::iterator MBB = MF.begin(), E = MF.end();
|
||||
MBB != E; ++MBB) {
|
||||
MCE.StartMachineBasicBlock(MBB);
|
||||
for (MachineBasicBlock::const_iterator I = MBB->begin(), E = MBB->end();
|
||||
I != E; ++I)
|
||||
emitInstruction(*I);
|
||||
}
|
||||
} while (MCE.finishFunction(MF));
|
||||
|
||||
// Resolve all forward branches now.
|
||||
@ -98,13 +102,6 @@ bool Emitter::runOnMachineFunction(MachineFunction &MF) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void Emitter::emitBasicBlock(MachineBasicBlock &MBB) {
|
||||
MCE.StartMachineBasicBlock(&MBB);
|
||||
for (MachineBasicBlock::const_iterator I = MBB.begin(), E = MBB.end();
|
||||
I != E; ++I)
|
||||
emitInstruction(*I);
|
||||
}
|
||||
|
||||
/// emitPCRelativeValue - Emit a 32-bit PC relative address.
|
||||
///
|
||||
void Emitter::emitPCRelativeValue(unsigned Address) {
|
||||
|
Loading…
Reference in New Issue
Block a user