aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2011-10-31 16:27:11 +0000
committerAnders Carlsson <andersca@mac.com>2011-10-31 16:27:11 +0000
commit2f1a6c3f015c6a7db51ef51f99519f88c43f894a (patch)
tree2a4d018b4a94339d36b1b8ceca018c88399455af /clang/lib/CodeGen/CodeGenModule.h
parenta35cdd68cf799d1cd2f9346e24bcd67d0b2afad3 (diff)
downloadllvm-2f1a6c3f015c6a7db51ef51f99519f88c43f894a.zip
llvm-2f1a6c3f015c6a7db51ef51f99519f88c43f894a.tar.gz
llvm-2f1a6c3f015c6a7db51ef51f99519f88c43f894a.tar.bz2
In x86_64, when calling an Objective-C method that returns a _Complex long double, make sure to use the objc_msgSend_fp2ret function which ensures that the return value will be {0, 0} if the receiver is nil.
llvm-svn: 143350
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index dbc6a87..ea2e1776 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -715,10 +715,14 @@ public:
/// as a return type.
bool ReturnTypeUsesSRet(const CGFunctionInfo &FI);
- /// ReturnTypeUsesSret - Return true iff the given type uses 'fpret' when used
- /// as a return type.
+ /// ReturnTypeUsesFPRet - Return true iff the given type uses 'fpret' when
+ /// used as a return type.
bool ReturnTypeUsesFPRet(QualType ResultType);
+ /// ReturnTypeUsesFP2Ret - Return true iff the given type uses 'fp2ret' when
+ /// used as a return type.
+ bool ReturnTypeUsesFP2Ret(QualType ResultType);
+
/// ConstructAttributeList - Get the LLVM attributes and calling convention to
/// use for a particular function type.
///