summaryrefslogtreecommitdiffstats
path: root/clang/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
commit8a472c3151693d7202e756628842e72a5595eeb5 (patch)
tree5ba7fb3cf6b211738006a017b445eb86074fa707 /clang/lib/CodeGen/CodeGenFunction.h
parent053441f39d0ca64f1369517c0d59ce057658f4d0 (diff)
downloadbcm5719-llvm-8a472c3151693d7202e756628842e72a5595eeb5.tar.gz
bcm5719-llvm-8a472c3151693d7202e756628842e72a5595eeb5.zip
Work in preparation for VLAs. Make sure to restore the stack if necessary (Saving the stack isn't implemented right now :)
llvm-svn: 60925
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 600582c96e7..952c3b3c1c7 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/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);
OpenPOWER on IntegriCloud