aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2008-12-12 05:52:00 +0000
committerAnders Carlsson <andersca@mac.com>2008-12-12 05:52:00 +0000
commit17d28a3e0b0efaba14534d0e6d6a307283d96b9f (patch)
tree5efe96a6063316547ccddfcf4b5ff78efe020fb1 /lib/CodeGen/CodeGenFunction.h
parent670a62cd1d51042ea076cda5e93f26a1d8327fb3 (diff)
Work in preparation for VLAs. Make sure to restore the stack if necessary (Saving the stack isn't implemented right now :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r--lib/CodeGen/CodeGenFunction.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h
index 600582c96e..952c3b3c1c 100644
--- a/lib/CodeGen/CodeGenFunction.h
+++ b/lib/CodeGen/CodeGenFunction.h
@@ -166,6 +166,11 @@ private:
/// statement range in current switch instruction.
llvm::BasicBlock *CaseRangeBlock;
+ /// StackSaveValues - A stack(!) of stack save values. When a new scope is
+ /// entered, a null is pushed on this stack. If a VLA is emitted, then
+ /// the return value of llvm.stacksave() is stored at the top of this stack.
+ llvm::SmallVector<llvm::Value*, 8> StackSaveValues;
+
public:
CodeGenFunction(CodeGenModule &cgm);