From 304053c6ec12405ae5da0f257c05369bac4dfbb0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 23 Jan 2005 22:13:58 +0000 Subject: Add support for the PhysRegsUsed array. llvm-svn: 19789 --- llvm/lib/CodeGen/MachineFunction.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/MachineFunction.cpp') diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index f2cf33642e2..f19ea0918f0 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/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::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); } -- cgit v1.2.3