aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/RegAllocSimple.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-15 22:02:22 +0000
committerChris Lattner <sabre@nondot.org>2004-08-15 22:02:22 +0000
commit26eb14ba51c8eccdb3ac69370c6ac859d3be34a4 (patch)
tree9d8b742c6501bcc3e8ba0e408ea85020ec469ac8 /lib/CodeGen/RegAllocSimple.cpp
parent57f1b67c347b9ba1f8a1cdc3a55362d4f2aa8653 (diff)
downloadexternal_llvm-26eb14ba51c8eccdb3ac69370c6ac859d3be34a4.zip
external_llvm-26eb14ba51c8eccdb3ac69370c6ac859d3be34a4.tar.gz
external_llvm-26eb14ba51c8eccdb3ac69370c6ac859d3be34a4.tar.bz2
Stop using CreateStackObject(RegClass*)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15775 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocSimple.cpp')
-rw-r--r--lib/CodeGen/RegAllocSimple.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocSimple.cpp b/lib/CodeGen/RegAllocSimple.cpp
index 320b267..6f6c2c6 100644
--- a/lib/CodeGen/RegAllocSimple.cpp
+++ b/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));