[llvm-commits] [llvm-gcc-4.2] r49195 - /llvm-gcc-4.2/trunk/gcc/llvm-abi.h

Devang Patel dpatel at apple.com
Thu Apr 3 18:08:26 PDT 2008


Author: dpatel
Date: Thu Apr  3 20:08:25 2008
New Revision: 49195

URL: http://llvm.org/viewvc/llvm-project?rev=49195&view=rev
Log:
s/isAggregateFunctionParam/doNotUseShadowReturn/g

Modified:
    llvm-gcc-4.2/trunk/gcc/llvm-abi.h

Modified: llvm-gcc-4.2/trunk/gcc/llvm-abi.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-abi.h?rev=49195&r1=49194&r2=49195&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-abi.h (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-abi.h Thu Apr  3 20:08:25 2008
@@ -100,9 +100,9 @@
          TREE_CODE(type) == COMPLEX_TYPE;
 }
 
-// isAggregateFunctionParam - Return true if the specified GCC type 
-// satisfies function.c:aggregate_value_p()
-static bool isAggregateFunctionParam(tree type, tree fndecl) {
+// doNotUseShadowReturn - Return true if the specified GCC type 
+// should not be returned using a pointer to struct parameter. 
+static bool doNotUseShadowReturn(tree type, tree fndecl) {
   if (TYPE_SIZE(type) && TREE_CODE(TYPE_SIZE(type)) == INTEGER_CST
       && !aggregate_value_p(type, fndecl))
     return true;
@@ -283,7 +283,7 @@
     } else if (Ty->isFirstClassType() || Ty == Type::VoidTy) {
       // Return scalar values normally.
       C.HandleScalarResult(Ty);
-    } else if (isAggregateFunctionParam(type, fn)
+    } else if (doNotUseShadowReturn(type, fn)
                && LLVM_SHOULD_RETURN_STRUCT_AS_SCALAR(type)) {
       tree SingleElt = LLVM_SHOULD_RETURN_SELT_STRUCT_AS_SCALAR(type);
       if (SingleElt && TYPE_SIZE(SingleElt) && 





More information about the llvm-commits mailing list