summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-06-18 21:18:23 +0000
committerChris Lattner <sabre@nondot.org>2011-06-18 21:18:23 +0000
commit0cd0d881604775f3f97048645f040b2ef4f61e4b (patch)
tree3340f491b6eefaabc97dc41d3287b6c38fcaa474 /include
parent70d0ff1a977273c925fea03070cf33c4a6cbd2cf (diff)
downloadllvm-0cd0d881604775f3f97048645f040b2ef4f61e4b.tar.gz
llvm-0cd0d881604775f3f97048645f040b2ef4f61e4b.tar.bz2
llvm-0cd0d881604775f3f97048645f040b2ef4f61e4b.tar.xz
eliminate the Type::getDescription() method, using "<<" instead. This
removes some gunk from LLVMContext. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133360 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Type.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index 65cf2e74f2..95b2f926bf 100644
--- a/include/llvm/Type.h
+++ b/include/llvm/Type.h
@@ -68,7 +68,7 @@ public:
/// Also update LLVMTypeKind and LLVMGetTypeKind () in the C binding.
///
enum TypeID {
- // PrimitiveTypes .. make sure LastPrimitiveTyID stays up to date
+ // PrimitiveTypes - make sure LastPrimitiveTyID stays up to date.
VoidTyID = 0, ///< 0: type with no size
FloatTyID, ///< 1: 32-bit floating point type
DoubleTyID, ///< 2: 64-bit floating point type
@@ -178,17 +178,13 @@ public:
LLVMContext &getContext() const { return Context; }
//===--------------------------------------------------------------------===//
- // Property accessors for dealing with types... Some of these virtual methods
- // are defined in private classes defined in Type.cpp for primitive types.
+ // Accessors for working with types.
//
- /// getDescription - Return the string representation of the type.
- std::string getDescription() const;
-
/// getTypeID - Return the type id for the type. This will return one
/// of the TypeID enum elements defined above.
///
- inline TypeID getTypeID() const { return ID; }
+ TypeID getTypeID() const { return ID; }
/// isVoidTy - Return true if this is 'void'.
bool isVoidTy() const { return ID == VoidTyID; }