diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-08-15 22:02:22 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-08-15 22:02:22 +0000 |
| commit | c66f27fd29535cd3f97d4ab89014c54c697b8ed7 (patch) | |
| tree | 2154712bc41e7c79215ee3791feab477ef1a196e /llvm/lib/CodeGen/RegAllocSimple.cpp | |
| parent | 98de1d7795ae84e70f3ddb8af7b0e167f97a9576 (diff) | |
| download | bcm5719-llvm-c66f27fd29535cd3f97d4ab89014c54c697b8ed7.tar.gz bcm5719-llvm-c66f27fd29535cd3f97d4ab89014c54c697b8ed7.zip | |
Stop using CreateStackObject(RegClass*)
llvm-svn: 15775
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocSimple.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/RegAllocSimple.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocSimple.cpp b/llvm/lib/CodeGen/RegAllocSimple.cpp index 320b2679337..6f6c2c6352e 100644 --- a/llvm/lib/CodeGen/RegAllocSimple.cpp +++ b/llvm/lib/CodeGen/RegAllocSimple.cpp @@ -99,7 +99,8 @@ int RegAllocSimple::getStackSpaceFor(unsigned VirtReg, return I->second; // Already has space allocated? // Allocate a new stack object for this spill location... - int FrameIdx = MF->getFrameInfo()->CreateStackObject(RC); + int FrameIdx = MF->getFrameInfo()->CreateStackObject(RC->getSize(), + RC->getAlignment()); // Assign the slot... StackSlotForVirtReg.insert(I, std::make_pair(VirtReg, FrameIdx)); |

