summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-06-16 21:37:15 +0000
committerChris Lattner <sabre@nondot.org>2011-06-16 21:37:15 +0000
commit1d0a815ee4b994d658125fe30e81160459c46d4a (patch)
tree0df4df48434d28a709705c23d763c4d3ffbc57f9 /include
parente817127e0a413bd934546b7d9b79a2b589c180b3 (diff)
downloadllvm-1d0a815ee4b994d658125fe30e81160459c46d4a.tar.gz
llvm-1d0a815ee4b994d658125fe30e81160459c46d4a.tar.bz2
llvm-1d0a815ee4b994d658125fe30e81160459c46d4a.tar.xz
change Type.h to forward declare ArrayRef instead of #including it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133197 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/DerivedTypes.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h
index 25b5978914..9e79339f4a 100644
--- a/include/llvm/DerivedTypes.h
+++ b/include/llvm/DerivedTypes.h
@@ -19,7 +19,6 @@
#define LLVM_DERIVED_TYPES_H
#include "llvm/Type.h"
-#include "llvm/ADT/ArrayRef.h"
#include "llvm/Support/DataTypes.h"
namespace llvm {
@@ -34,6 +33,7 @@ class VectorValType;
class IntegerValType;
class APInt;
class LLVMContext;
+template<typename T> class ArrayRef;
class DerivedType : public Type {
friend class Type;
@@ -158,10 +158,8 @@ public:
/// FunctionType::get - Create a FunctionType taking no parameters.
///
- static FunctionType *get(const Type *Result, bool isVarArg) {
- return get(Result, ArrayRef<const Type *>(), isVarArg);
- }
-
+ static FunctionType *get(const Type *Result, bool isVarArg);
+
/// isValidReturnType - Return true if the specified type is valid as a return
/// type.
static bool isValidReturnType(const Type *RetTy);
@@ -239,10 +237,8 @@ public:
/// StructType::get - Create an empty structure type.
///
- static StructType *get(LLVMContext &Context, bool isPacked=false) {
- return get(Context, llvm::ArrayRef<const Type*>(), isPacked);
- }
-
+ static StructType *get(LLVMContext &Context, bool isPacked=false);
+
/// StructType::get - This static method is a convenience method for
/// creating structure types by specifying the elements as arguments.
/// Note that this method always returns a non-packed struct. To get