aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-01-31 03:05:44 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-01-31 03:05:44 +0000
commit36b5f5ee026b6725bff9c5b8faba635d7dfeeb7d (patch)
tree9817dab57bae908b564ceb47488a1ff52119f2ad /lib
parent6f6b0367ba358e4bc921a6b7b7438d829bcb778a (diff)
Remove unused overload of GetFunctionType.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63472 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/CGCall.cpp10
-rw-r--r--lib/CodeGen/CodeGenTypes.h9
2 files changed, 3 insertions, 16 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp
index 08d5da30fa..7fc3176d2d 100644
--- a/lib/CodeGen/CGCall.cpp
+++ b/lib/CodeGen/CGCall.cpp
@@ -874,17 +874,11 @@ CodeGenFunction::ExpandTypeToArgs(QualType Ty, RValue RV,
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 @@ CodeGenTypes::GetFunctionType(ArgTypeIterator begin, ArgTypeIterator end,
}
}
- return llvm::FunctionType::get(ResultType, ArgTys, IsVariadic);
+ return llvm::FunctionType::get(ResultType, ArgTys, FI.isVariadic());
}
bool CodeGenModule::ReturnTypeUsesSret(QualType RetTy) {
diff --git a/lib/CodeGen/CodeGenTypes.h b/lib/CodeGen/CodeGenTypes.h
index 46ca79a3ca..eb4244545b 100644
--- a/lib/CodeGen/CodeGenTypes.h
+++ b/lib/CodeGen/CodeGenTypes.h
@@ -143,15 +143,8 @@ public:
/// 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