aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-22 21:56:56 +0000
committerChris Lattner <sabre@nondot.org>2009-03-22 21:56:56 +0000
commitb808c952bbff821dce727dd801a1098d64394f98 (patch)
tree6dd39a0a265f769bcf29483e44372d60e7f09617 /lib/CodeGen/CodeGenModule.h
parent1ab10d45bf7669a299a20021fa5c69845d9f0ee0 (diff)
switch getBuiltinLibFunction to use the new GetOrCreateLLVMFunction
functionality, fixing a crash on the attached testcase. Eliminate the BuiltinFunctions cache, as it can contain dangling pointers. This fixes a bunch of valgrind errors on test/CodeGen/builtins.c git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r--lib/CodeGen/CodeGenModule.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h
index fdf5775170..a32774852d 100644
--- a/lib/CodeGen/CodeGenModule.h
+++ b/lib/CodeGen/CodeGenModule.h
@@ -137,11 +137,6 @@ class CodeGenModule : public BlockModule {
/// CFConstantStringClassRef - Cached reference to the class for constant
/// 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<llvm::Value *> BuiltinFunctions;
public:
CodeGenModule(ASTContext &C, const LangOptions &Features, llvm::Module &M,
const llvm::TargetData &TD, Diagnostic &Diags,