mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-17 15:38:40 +00:00
Add support for the PhysRegsUsed array.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19789 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d6b210ca38
commit
ce9c41e77a
@ -61,7 +61,7 @@ namespace {
|
|||||||
/// stream is std::cerr; the default banner is empty.
|
/// stream is std::cerr; the default banner is empty.
|
||||||
///
|
///
|
||||||
FunctionPass *llvm::createMachineFunctionPrinterPass(std::ostream *OS,
|
FunctionPass *llvm::createMachineFunctionPrinterPass(std::ostream *OS,
|
||||||
const std::string &Banner) {
|
const std::string &Banner){
|
||||||
return new Printer(OS, Banner);
|
return new Printer(OS, Banner);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ void ilist_traits<MachineBasicBlock>::transferNodesFromList(
|
|||||||
|
|
||||||
MachineFunction::MachineFunction(const Function *F,
|
MachineFunction::MachineFunction(const Function *F,
|
||||||
const TargetMachine &TM)
|
const TargetMachine &TM)
|
||||||
: Annotation(MF_AID), Fn(F), Target(TM) {
|
: Annotation(MF_AID), Fn(F), Target(TM), UsedPhysRegs(0) {
|
||||||
SSARegMapping = new SSARegMap();
|
SSARegMapping = new SSARegMap();
|
||||||
MFInfo = 0;
|
MFInfo = 0;
|
||||||
FrameInfo = new MachineFrameInfo();
|
FrameInfo = new MachineFrameInfo();
|
||||||
@ -122,6 +122,7 @@ MachineFunction::~MachineFunction() {
|
|||||||
delete MFInfo;
|
delete MFInfo;
|
||||||
delete FrameInfo;
|
delete FrameInfo;
|
||||||
delete ConstantPool;
|
delete ConstantPool;
|
||||||
|
delete[] UsedPhysRegs;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MachineFunction::dump() const { print(std::cerr); }
|
void MachineFunction::dump() const { print(std::cerr); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user