aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-09 23:48:28 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-09 23:48:28 +0000
commit3913f184c84135fb4612743f1faa6c1edd2dd055 (patch)
treea7dfb8e64fbd0e54cde2df6c8521d81a399b8726 /lib/CodeGen/CGCall.cpp
parent9e922b1663ecb95dc7eee03002fd66ed18fb3192 (diff)
Add CodeGenFunction::ReturnTypeUsesSret
- Hook so NeXT runtime doesn't depend on ABI. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r--lib/CodeGen/CGCall.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp
index 89004325c1..8b7400af56 100644
--- a/lib/CodeGen/CGCall.cpp
+++ b/lib/CodeGen/CGCall.cpp
@@ -117,6 +117,10 @@ void CGCallInfo::constructParamAttrList(ParamAttrListType &PAL) const {
/***/
+bool CodeGenFunction::ReturnTypeUsesSret(QualType RetTy) {
+ return hasAggregateLLVMType(RetTy);
+}
+
void CodeGenFunction::EmitFunctionProlog(llvm::Function *Fn,
QualType RetTy,
const FunctionArgList &Args) {