summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-02-27 22:42:30 +0000
committerMike Stump <mrs@apple.com>2009-02-27 22:42:30 +0000
commit537abb0dec331bc51f5c0db139bf82963b17e903 (patch)
tree1e7f8a5310d3872c3832a54cfe8f6d18d5424da1 /clang/lib/CodeGen/CodeGenModule.h
parentf5c1c923e8fd963d048c0bb14d43c25e4bf87e23 (diff)
downloadbcm5719-llvm-537abb0dec331bc51f5c0db139bf82963b17e903.tar.gz
bcm5719-llvm-537abb0dec331bc51f5c0db139bf82963b17e903.zip
Fix PR3612. We ensure that we add builtins to the GlobalDeclMap and
we ensure that things added to the module can be found even when they are not in GlobalDeclMap. The later is for increased flexibility, should someone want to do something tricky like extern "Ada" in the same module. llvm-svn: 65657
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 3a98bb7d438..093a9b12f76 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -154,7 +154,7 @@ class CodeGenModule {
int GlobalUniqueCount;
} Block;
- std::vector<llvm::Function *> BuiltinFunctions;
+ std::vector<llvm::Value *> BuiltinFunctions;
public:
CodeGenModule(ASTContext &C, const LangOptions &Features, llvm::Module &M,
const llvm::TargetData &TD, Diagnostic &Diags,
@@ -243,7 +243,7 @@ public:
/// getBuiltinLibFunction - Given a builtin id for a function like
/// "__builtin_fabsf", return a Function* for "fabsf".
- llvm::Function *getBuiltinLibFunction(unsigned BuiltinID);
+ llvm::Value *getBuiltinLibFunction(unsigned BuiltinID);
llvm::Function *getMemCpyFn();
llvm::Function *getMemMoveFn();
OpenPOWER on IntegriCloud