aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-19 07:15:39 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-19 07:15:39 +0000
commitd5d31801fc87239436fa349c89dce7797cf13537 (patch)
treee76bc0384471e0b92201a366b7a8af7acee631e0 /lib/CodeGen/CodeGenModule.h
parentafa74448a07a16c3146accbe0ff03e9c8b0995e5 (diff)
Don't emit K&R unprototyped function definitions as varargs.
- <rdar://problem/6584606> clang/x86-64 - too many reg saves git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r--lib/CodeGen/CodeGenModule.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h
index b7d3aa9f38..3f1aeb80be 100644
--- a/lib/CodeGen/CodeGenModule.h
+++ b/lib/CodeGen/CodeGenModule.h
@@ -322,7 +322,16 @@ private:
void EmitGlobal(const ValueDecl *D);
void EmitGlobalDefinition(const ValueDecl *D);
- llvm::GlobalValue *EmitForwardFunctionDefinition(const FunctionDecl *D);
+
+ /// EmitForwardFunctionDefinition - Create a new 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 *EmitForwardFunctionDefinition(const FunctionDecl *D,
+ const llvm::Type *Ty);
+
void EmitGlobalFunctionDefinition(const FunctionDecl *D);
void EmitGlobalVarDefinition(const VarDecl *D);
void EmitObjCPropertyImplementations(const ObjCImplementationDecl *D);