aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-09 23:27:19 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-09 23:27:19 +0000
commit17b708d61827cd86278e9580b041dd6cbadf07d3 (patch)
tree0b200c781e016f556c46b6b68d1a190923767432 /lib/CodeGen/CodeGenFunction.h
parent7c086516f3cc9fba2733b1919973206c6ba4b171 (diff)
Move ABI specific code for functions / calls to CGCall.cpp:
- Factor out EmitFunction{Pro,Epi}log git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r--lib/CodeGen/CodeGenFunction.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h
index cef6503eeb..5054b56d21 100644
--- a/lib/CodeGen/CodeGenFunction.h
+++ b/lib/CodeGen/CodeGenFunction.h
@@ -137,7 +137,18 @@ public:
llvm::Function *Fn,
const FunctionArgList &Args);
void FinishFunction(SourceLocation EndLoc=SourceLocation());
-
+
+ /// EmitFunctionProlog - Emit the target specific LLVM code to load
+ /// the arguments for the given function. This is also responsible
+ /// for naming the LLVM function arguments.
+ void EmitFunctionProlog(llvm::Function *Fn, QualType RetTy,
+ const FunctionArgList &Args);
+
+ /// EmitFunctionEpilog - Emit the target specific LLVM code to
+ /// return the given temporary.
+ void EmitFunctionEpilog(QualType RetTy,
+ llvm::Value *ReturnValue);
+
const llvm::Type *ConvertType(QualType T);
/// LoadObjCSelf - Load the value of self. This function is only