diff options
author | Anders Carlsson <andersca@mac.com> | 2008-12-20 20:27:15 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-12-20 20:27:15 +0000 |
commit | e388a5bf44aba581bc17a40235b630c6383ae931 (patch) | |
tree | ae05eb0d8a1d3e8459e89b7523643963e199e280 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 6200f0c533e8541d821d2cad3ede28c700cf788f (diff) | |
download | bcm5719-llvm-e388a5bf44aba581bc17a40235b630c6383ae931.tar.gz bcm5719-llvm-e388a5bf44aba581bc17a40235b630c6383ae931.zip |
Split up emitting of VLA sizes and getting the size of a VLA.
llvm-svn: 61284
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index a92bac7f1eb..95000688147 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -349,7 +349,11 @@ public: // FIXME: We should be able to get rid of this method and use the va_arg // instruction in LLVM instead once it works well enough. llvm::Value *EmitVAArg(llvm::Value *VAListAddr, QualType Ty); - + + // EmitVLASize - Generate code for the VLA type. Returns an + // lLVM value that corresponds to the size in bytes of the + llvm::Value *EmitVLASize(const VariableArrayType *); + // GetVLASize - Returns an LLVM value that corresponds to the size in bytes // of a variable length array type. llvm::Value *GetVLASize(const VariableArrayType *); |