Split up emitting of VLA sizes and getting the size of a VLA.
llvm-svn: 61284
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index a92bac7..9500068 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -349,7 +349,11 @@
// 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 *);