diff options
author | Owen Anderson <resistor@mac.com> | 2009-03-13 05:55:11 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-03-13 05:55:11 +0000 |
commit | 49c8aa0d8b2824c70d178c5d55cda64d6613c0d8 (patch) | |
tree | 31ef4e50cfa4efb10053a46a57c64ee2837fc3a2 /lib/CodeGen/RegAllocPBQP.cpp | |
parent | cee56e7d33fecc74da6f16ebb48dd5b62d73ea8d (diff) | |
download | external_llvm-49c8aa0d8b2824c70d178c5d55cda64d6613c0d8.zip external_llvm-49c8aa0d8b2824c70d178c5d55cda64d6613c0d8.tar.gz external_llvm-49c8aa0d8b2824c70d178c5d55cda64d6613c0d8.tar.bz2 |
Convert VirtRegMap to a MachineFunctionPass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66870 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocPBQP.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocPBQP.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index 767e985..7f699f8 100644 --- a/lib/CodeGen/RegAllocPBQP.cpp +++ b/lib/CodeGen/RegAllocPBQP.cpp @@ -799,8 +799,7 @@ bool PBQPRegAlloc::runOnMachineFunction(MachineFunction &MF) { lss = &getAnalysis<LiveStacks>(); loopInfo = &getAnalysis<MachineLoopInfo>(); - std::auto_ptr<VirtRegMap> vrmAutoPtr(new VirtRegMap(*mf)); - vrm = vrmAutoPtr.get(); + vrm = &getAnalysis<VirtRegMap>(); DOUT << "PBQP Register Allocating for " << mf->getFunction()->getName() << "\n"; |