mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-31 08:16:47 +00:00
Oops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34698 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -46,14 +46,13 @@ public:
|
|||||||
|
|
||||||
/// Init - Initialize the states.
|
/// Init - Initialize the states.
|
||||||
///
|
///
|
||||||
void init();
|
void init(MachineBasicBlock *mbb = NULL);
|
||||||
|
|
||||||
/// Reset - Discard previous states and re-initialize the states given for
|
/// Reset - Discard previous states and re-initialize the states given for
|
||||||
/// the specific basic block.
|
/// the specific basic block.
|
||||||
void reset(MachineBasicBlock *mbb) {
|
void reset(MachineBasicBlock *mbb) {
|
||||||
MBB = mbb;
|
|
||||||
clear();
|
clear();
|
||||||
init();
|
init(mbb);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// forward / backward - Move the internal MBB iterator and update register
|
/// forward / backward - Move the internal MBB iterator and update register
|
||||||
|
|||||||
@@ -25,7 +25,10 @@
|
|||||||
#include "llvm/ADT/STLExtras.h"
|
#include "llvm/ADT/STLExtras.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
void RegScavenger::init() {
|
void RegScavenger::init(MachineBasicBlock *mbb) {
|
||||||
|
if (mbb)
|
||||||
|
MBB = mbb;
|
||||||
|
|
||||||
const MachineFunction &MF = *MBB->getParent();
|
const MachineFunction &MF = *MBB->getParent();
|
||||||
const TargetMachine &TM = MF.getTarget();
|
const TargetMachine &TM = MF.getTarget();
|
||||||
const MRegisterInfo *RegInfo = TM.getRegisterInfo();
|
const MRegisterInfo *RegInfo = TM.getRegisterInfo();
|
||||||
|
|||||||
Reference in New Issue
Block a user