[llvm-commits] [llvm-gcc-4.2] r49231 - in /llvm-gcc-4.2/trunk/gcc: llvm-abi.h llvm-convert.cpp llvm-types.cpp
Devang Patel
dpatel at apple.com
Fri Apr 4 14:15:06 PDT 2008
Author: dpatel
Date: Fri Apr 4 16:15:06 2008
New Revision: 49231
URL: http://llvm.org/viewvc/llvm-project?rev=49231&view=rev
Log:
Add new handle.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-abi.h
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
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=49231&r1=49230&r2=49231&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-abi.h (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-abi.h Fri Apr 4 16:15:06 2008
@@ -60,6 +60,10 @@
/// type and returning that.
void HandleAggregateResultAsScalar(const Type *ScalarTy) {}
+ /// HandleAggregateResultAsAggregate - This callback is invoked if the function
+ /// ruturns an aggregate value using multiple return values.
+ void HandleAggregateResultAsAggregate(const Type *AggrTy) {}
+
/// HandleAggregateShadowArgument - This callback is invoked if the function
/// returns an aggregate value by using a "shadow" first parameter, which is
/// a pointer to the aggregate, of type PtrArgTy. If RetPtr is set to true,
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=49231&r1=49230&r2=49231&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Fri Apr 4 16:15:06 2008
@@ -2380,6 +2380,12 @@
// There is nothing to do here.
}
+ /// HandleAggregateResultAsAggregate - This callback is invoked if the function
+ /// ruturns an aggregate value using multiple return values.
+ void HandleAggregateResultAsAggregate(const Type *AggrTy) {
+ // There is nothing to do here.
+ }
+
/// HandleAggregateShadowArgument - This callback is invoked if the function
/// returns an aggregate value by using a "shadow" first parameter. If
/// RetPtr is set to true, the pointer argument itself is returned from the
Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-types.cpp?rev=49231&r1=49230&r2=49231&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-types.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Fri Apr 4 16:15:06 2008
@@ -954,6 +954,12 @@
RetTy = ScalarTy;
}
+ /// HandleAggregateResultAsAggregate - This callback is invoked if the function
+ /// ruturns an aggregate value using multiple return values.
+ void HandleAggregateResultAsAggregate(const Type *AggrTy) {
+ RetTy = AggrTy;
+ }
+
/// HandleShadowArgument - Handle an aggregate or scalar shadow argument.
void HandleShadowArgument(const PointerType *PtrArgTy, bool RetPtr) {
// This function either returns void or the shadow argument,
More information about the llvm-commits
mailing list