[llvm-commits] [llvm-gcc-4.2] r92998 - /llvm-gcc-4.2/trunk/gcc/llvm-abi.h
Duncan Sands
baldrick at free.fr
Fri Jan 8 05:11:53 PST 2010
Author: baldrick
Date: Fri Jan 8 07:11:52 2010
New Revision: 92998
URL: http://llvm.org/viewvc/llvm-project?rev=92998&view=rev
Log:
Port dragonegg commit 92907: Remove unused parameters.
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=92998&r1=92997&r2=92998&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-abi.h (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-abi.h Fri Jan 8 07:11:52 2010
@@ -462,7 +462,7 @@
ScalarElts.push_back(PtrTy);
} else if (isa<VectorType>(Ty)) {
if (LLVM_SHOULD_PASS_VECTOR_IN_INTEGER_REGS(type)) {
- PassInIntegerRegisters(type, Ty, ScalarElts, 0, false);
+ PassInIntegerRegisters(type, ScalarElts, 0, false);
} else if (LLVM_SHOULD_PASS_VECTOR_USING_BYVAL_ATTR(type)) {
C.HandleByValArgument(Ty, type);
if (Attributes) {
@@ -485,7 +485,7 @@
if (!LLVM_AGGREGATE_PARTIALLY_PASSED_IN_REGS(Elts, ScalarElts,
C.isShadowReturn(),
C.getCallingConv()))
- PassInMixedRegisters(type, Ty, Elts, ScalarElts);
+ PassInMixedRegisters(Ty, Elts, ScalarElts);
else {
C.HandleByValArgument(Ty, type);
if (Attributes) {
@@ -503,7 +503,7 @@
}
} else if (LLVM_SHOULD_PASS_AGGREGATE_IN_INTEGER_REGS(type, &Size,
&DontCheckAlignment)) {
- PassInIntegerRegisters(type, Ty, ScalarElts, Size, DontCheckAlignment);
+ PassInIntegerRegisters(type, ScalarElts, Size, DontCheckAlignment);
} else if (isZeroSizedStructOrUnion(type)) {
// Zero sized struct or union, just drop it!
;
@@ -595,8 +595,7 @@
/// PassInIntegerRegisters - Given an aggregate value that should be passed in
/// integer registers, convert it to a structure containing ints and pass all
/// of the struct elements in. If Size is set we pass only that many bytes.
- void PassInIntegerRegisters(tree type, const Type *Ty,
- std::vector<const Type*> &ScalarElts,
+ void PassInIntegerRegisters(tree type, std::vector<const Type*> &ScalarElts,
unsigned origSize, bool DontCheckAlignment) {
unsigned Size;
if (origSize)
@@ -669,8 +668,7 @@
/// PassInMixedRegisters - Given an aggregate value that should be passed in
/// mixed integer, floating point, and vector registers, convert it to a
/// structure containing the specified struct elements in.
- void PassInMixedRegisters(tree type, const Type *Ty,
- std::vector<const Type*> &OrigElts,
+ void PassInMixedRegisters(const Type *Ty, std::vector<const Type*> &OrigElts,
std::vector<const Type*> &ScalarElts) {
// We use VoidTy in OrigElts to mean "this is a word in the aggregate
// that occupies storage but has no useful information, and is not passed
@@ -840,7 +838,7 @@
}
} else if (isa<VectorType>(Ty)) {
if (LLVM_SHOULD_PASS_VECTOR_IN_INTEGER_REGS(type)) {
- PassInIntegerRegisters(type, Ty, ScalarElts, 0, false);
+ PassInIntegerRegisters(type, ScalarElts, 0, false);
} else if (LLVM_SHOULD_PASS_VECTOR_USING_BYVAL_ATTR(type)) {
C.HandleByValArgument(Ty, type);
if (Attributes) {
@@ -960,7 +958,7 @@
*Attributes |= Attr;
}
- PassInMixedRegisters(type, Ty, Elts, ScalarElts);
+ PassInMixedRegisters(Ty, Elts, ScalarElts);
} else if (LLVM_SHOULD_PASS_AGGREGATE_USING_BYVAL_ATTR(type, Ty)) {
C.HandleByValArgument(Ty, type);
if (Attributes) {
@@ -1037,8 +1035,7 @@
/// of the struct elements in. If Size is set we pass only that many bytes.
///
/// This is the default implementation which was copied from DefaultABI.
- void PassInIntegerRegisters(tree type, const Type *Ty,
- std::vector<const Type*> &ScalarElts,
+ void PassInIntegerRegisters(tree type, std::vector<const Type*> &ScalarElts,
unsigned origSize, bool DontCheckAlignment) {
unsigned Size;
if (origSize)
@@ -1113,8 +1110,7 @@
/// structure containing the specified struct elements in.
///
/// This is the default implementation which was copied from DefaultABI.
- void PassInMixedRegisters(tree type, const Type *Ty,
- std::vector<const Type*> &OrigElts,
+ void PassInMixedRegisters(const Type *Ty, std::vector<const Type*> &OrigElts,
std::vector<const Type*> &ScalarElts) {
// We use VoidTy in OrigElts to mean "this is a word in the aggregate
// that occupies storage but has no useful information, and is not passed
More information about the llvm-commits
mailing list