diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-23 22:13:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-23 22:13:58 +0000 |
commit | ce9c41e77a2ec75d48a173b9baf0f4a3bf49fac7 (patch) | |
tree | 4a0749378a79cf02a32cbe8ccf4ce03bf6dfba27 /lib/CodeGen/MachineFunction.cpp | |
parent | d6b210ca3808a0e0ab9e1e2aefb73d61462fff0a (diff) |
Add support for the PhysRegsUsed array.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19789 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | lib/CodeGen/MachineFunction.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp index f2cf33642e..f19ea0918f 100644 --- a/lib/CodeGen/MachineFunction.cpp +++ b/lib/CodeGen/MachineFunction.cpp @@ -61,7 +61,7 @@ namespace { /// 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 @@ void ilist_traits<MachineBasicBlock>::transferNodesFromList( 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 @@ MachineFunction::~MachineFunction() { delete MFInfo; delete FrameInfo; delete ConstantPool; + delete[] UsedPhysRegs; } void MachineFunction::dump() const { print(std::cerr); } |