From e21c4b829c9e69c20f4baab4916e05cdb786d9ae Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 21 Mar 2009 07:48:31 +0000 Subject: simplify and comment some code better. Make BindRuntimeGlobals more optimistic that it will work (optimizing for the common case). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67438 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/CodeGen/CodeGenModule.h') diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 12c103ba62..a2cb442a84 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -94,7 +94,7 @@ class CodeGenModule : public BlockModule { /// emitted. Note that the entries in this map are the actual /// globals and therefore may not be of the same type as the decl, /// they should be bitcasted on retrieval. Also note that the - /// globals are keyed on their source name, not the global name + /// globals are keyed on their source mangled name, not the global name /// (which may change with attributes such as asm-labels). This key /// to this map should be generated using getMangledName(). llvm::DenseMap GlobalDeclMap; @@ -141,6 +141,9 @@ class CodeGenModule : public BlockModule { /// strings. This value has type int * but is actually an Obj-C class pointer. llvm::Constant *CFConstantStringClassRef; + /// BuiltinFunctions - This is the cached set of Function*'s that have been + /// created for each builtin, indexed by the Builtin ID. This is null if the + /// Function* has not yet been created. std::vector BuiltinFunctions; public: CodeGenModule(ASTContext &C, const LangOptions &Features, llvm::Module &M, -- cgit v1.2.3-18-g5258