summaryrefslogtreecommitdiffstats
path: root/clang/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
commite64911a4ae4d20583f650d59f7975ec43256679f (patch)
treeadd77011b3b8ede907bf98943c977570a23b0b1a /clang/lib/CodeGen/CodeGenModule.h
parentbae2042bb5ce138b49cf9ab31b81b4c847f1aa5c (diff)
downloadbcm5719-llvm-e64911a4ae4d20583f650d59f7975ec43256679f.tar.gz
bcm5719-llvm-e64911a4ae4d20583f650d59f7975ec43256679f.zip
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 llvm-svn: 67484
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index fdf5775170f..a32774852d5 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/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,
OpenPOWER on IntegriCloud