summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-18 00:25:38 +0000
committerChris Lattner <sabre@nondot.org>2007-12-18 00:25:38 +0000
commitb8be97e2391cf9c91a72a3de531c77a39f51ed61 (patch)
tree4a6b5231f258f9e68ebd372715c865e580585b24 /clang/CodeGen/CodeGenModule.h
parent2050b0d05abc60b72257297252f44ee6bf59a294 (diff)
downloadbcm5719-llvm-b8be97e2391cf9c91a72a3de531c77a39f51ed61.tar.gz
bcm5719-llvm-b8be97e2391cf9c91a72a3de531c77a39f51ed61.zip
introduce a new CodeGenModule::getIntrinsic method, which wraps
Intrinsic::getDeclaration, allowing much more terse code. llvm-svn: 45136
Diffstat (limited to 'clang/CodeGen/CodeGenModule.h')
-rw-r--r--clang/CodeGen/CodeGenModule.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/CodeGen/CodeGenModule.h b/clang/CodeGen/CodeGenModule.h
index 4d4b18ab627..5c61ad882bc 100644
--- a/clang/CodeGen/CodeGenModule.h
+++ b/clang/CodeGen/CodeGenModule.h
@@ -80,7 +80,8 @@ public:
llvm::Constant *GetAddrOfConstantCFString(const std::string& str);
llvm::Constant *GetAddrOfConstantString(const std::string& str);
llvm::Function *getMemCpyFn();
-
+ llvm::Function *getIntrinsic(unsigned IID, const llvm::Type **Tys = 0,
+ unsigned NumTys = 0);
void EmitFunction(const FunctionDecl *FD);
void EmitGlobalVar(const FileVarDecl *D);
OpenPOWER on IntegriCloud