summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-02 23:43:58 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-02 23:43:58 +0000
commit3668cb2d3c0437c4f339a1596cab9e82b6af93c7 (patch)
tree828a3084cc5e50f8da7d15b501c362e3346c0e95 /clang/lib/CodeGen/CGCall.h
parent8bd3c2ebaccc7c226282750eb23ef622f05ad0ce (diff)
downloadbcm5719-llvm-3668cb2d3c0437c4f339a1596cab9e82b6af93c7.tar.gz
bcm5719-llvm-3668cb2d3c0437c4f339a1596cab9e82b6af93c7.zip
Change CGFunctionInfo args iterator to not include the return type.
llvm-svn: 63571
Diffstat (limited to 'clang/lib/CodeGen/CGCall.h')
-rw-r--r--clang/lib/CodeGen/CGCall.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGCall.h b/clang/lib/CodeGen/CGCall.h
index f8fb32b15a4..aaab36ca83e 100644
--- a/clang/lib/CodeGen/CGCall.h
+++ b/clang/lib/CodeGen/CGCall.h
@@ -47,21 +47,19 @@ namespace CodeGen {
typedef llvm::SmallVector<std::pair<const VarDecl*, QualType>,
16> FunctionArgList;
- // FIXME: This should be a better iterator type so that we can avoid
- // construction of the ArgTypes smallvectors.
- typedef llvm::SmallVector<QualType, 16>::const_iterator ArgTypeIterator;
-
/// CGFunctionInfo - Class to encapsulate the information about a
/// function definition.
class CGFunctionInfo {
llvm::SmallVector<QualType, 16> ArgTypes;
public:
+ typedef llvm::SmallVector<QualType, 16>::const_iterator arg_iterator;
+
CGFunctionInfo(QualType ResTy,
const llvm::SmallVector<QualType, 16> &ArgTys);
- ArgTypeIterator argtypes_begin() const;
- ArgTypeIterator argtypes_end() const;
+ arg_iterator arg_begin() const;
+ arg_iterator arg_end() const;
QualType getReturnType() const { return ArgTypes[0]; }
};
OpenPOWER on IntegriCloud