[cfe-commits] r63472 - in /cfe/trunk/lib/CodeGen: CGCall.cpp CodeGenTypes.h

Daniel Dunbar daniel at zuster.org
Fri Jan 30 19:05:44 PST 2009


Author: ddunbar
Date: Fri Jan 30 21:05:44 2009
New Revision: 63472

URL: http://llvm.org/viewvc/llvm-project?rev=63472&view=rev
Log:
Remove unused overload of GetFunctionType.

Modified:
    cfe/trunk/lib/CodeGen/CGCall.cpp
    cfe/trunk/lib/CodeGen/CodeGenTypes.h

Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=63472&r1=63471&r2=63472&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Fri Jan 30 21:05:44 2009
@@ -874,17 +874,11 @@
 
 const llvm::FunctionType *
 CodeGenTypes::GetFunctionType(const CGFunctionInfo &FI) {
-  return GetFunctionType(FI.argtypes_begin(), FI.argtypes_end(), 
-                         FI.isVariadic());
-}
-
-const llvm::FunctionType *
-CodeGenTypes::GetFunctionType(ArgTypeIterator begin, ArgTypeIterator end,
-                              bool IsVariadic) {
   std::vector<const llvm::Type*> ArgTys;
 
   const llvm::Type *ResultType = 0;
 
+  ArgTypeIterator begin = FI.argtypes_begin(), end = FI.argtypes_end();  
   QualType RetTy = *begin;
   ABIArgInfo RetAI = getABIReturnInfo(RetTy, *this);
   switch (RetAI.getKind()) {
@@ -944,7 +938,7 @@
     }
   }
 
-  return llvm::FunctionType::get(ResultType, ArgTys, IsVariadic);
+  return llvm::FunctionType::get(ResultType, ArgTys, FI.isVariadic());
 }
 
 bool CodeGenModule::ReturnTypeUsesSret(QualType RetTy) {

Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTypes.h?rev=63472&r1=63471&r2=63472&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTypes.h (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTypes.h Fri Jan 30 21:05:44 2009
@@ -143,15 +143,8 @@
   /// memory representation is usually i8 or i32, depending on the target.
   const llvm::Type *ConvertTypeForMem(QualType T);
 
-  /// GetFunctionType - Get the LLVM function type from Info.
+  /// GetFunctionType - Get the LLVM function type for \arg Info.
   const llvm::FunctionType *GetFunctionType(const CGFunctionInfo &Info);
-
-  /// GetFunctionType - Get the LLVM function type for the given types
-  /// and variadicness.
-  // FIXME: Do we even need IsVariadic here?
-  const llvm::FunctionType *GetFunctionType(ArgTypeIterator begin,
-                                            ArgTypeIterator end,
-                                            bool IsVariadic);
   
   const CGRecordLayout *getCGRecordLayout(const TagDecl*) const;
   /// Returns a StructType representing an Objective-C object





More information about the cfe-commits mailing list