summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index f35aa09fef8..12da8c1e343 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -178,9 +178,11 @@ public:
/// given global variable.
llvm::Constant *GetAddrOfGlobalVar(const VarDecl *D);
- /// GetAddrOfFunction - Return the llvm::Constant for the address of the given
- /// function.
- llvm::Constant *GetAddrOfFunction(const FunctionDecl *D);
+ /// GetAddrOfFunction - Return the address of the given function. If Ty is
+ /// non-null, then this function will use the specified type if it has to
+ /// create it.
+ llvm::Function *GetAddrOfFunction(const FunctionDecl *D,
+ const llvm::Type *Ty = 0);
/// GetStringForStringLiteral - Return the appropriate bytes for a string
/// literal, properly padded to match the literal type. If only the address of
@@ -315,15 +317,6 @@ private:
void EmitGlobalDefinition(const ValueDecl *D);
- /// CreateFunctionPrototypeIR - Create a new LLVM IR Function for the given
- /// decl and set attributes as appropriate.
- ///
- /// \arg Ty - If non-null the LLVM function type to use for the
- /// decl; it is the callers responsibility to make sure this is
- /// compatible with the correct type.
- llvm::GlobalValue *CreateFunctionPrototypeIR(const FunctionDecl *D,
- const llvm::Type *Ty);
-
void EmitGlobalFunctionDefinition(const FunctionDecl *D);
void EmitGlobalVarDefinition(const VarDecl *D);
void EmitObjCPropertyImplementations(const ObjCImplementationDecl *D);
OpenPOWER on IntegriCloud