Add support for the PhysRegsUsed array.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19789 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp
index f2cf336..f19ea09 100644
--- a/lib/CodeGen/MachineFunction.cpp
+++ b/lib/CodeGen/MachineFunction.cpp
@@ -61,7 +61,7 @@
/// stream is std::cerr; the default banner is empty.
///
FunctionPass *llvm::createMachineFunctionPrinterPass(std::ostream *OS,
- const std::string &Banner) {
+ const std::string &Banner){
return new Printer(OS, Banner);
}
@@ -108,7 +108,7 @@
MachineFunction::MachineFunction(const Function *F,
const TargetMachine &TM)
- : Annotation(MF_AID), Fn(F), Target(TM) {
+ : Annotation(MF_AID), Fn(F), Target(TM), UsedPhysRegs(0) {
SSARegMapping = new SSARegMap();
MFInfo = 0;
FrameInfo = new MachineFrameInfo();
@@ -122,6 +122,7 @@
delete MFInfo;
delete FrameInfo;
delete ConstantPool;
+ delete[] UsedPhysRegs;
}
void MachineFunction::dump() const { print(std::cerr); }