diff options
author | Devang Patel <dpatel@apple.com> | 2010-01-22 22:52:10 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-01-22 22:52:10 +0000 |
commit | bc5201f8371f9041e79efcca3b158335da5c2604 (patch) | |
tree | cdc3af2913419655bda4762fb9f09ac88b34cde8 /include | |
parent | 5d74e1f64445713cca863af03b8b6ab39321046e (diff) | |
download | llvm-bc5201f8371f9041e79efcca3b158335da5c2604.tar.gz llvm-bc5201f8371f9041e79efcca3b158335da5c2604.tar.bz2 llvm-bc5201f8371f9041e79efcca3b158335da5c2604.tar.xz |
Remove MetadataBase class because it is not adding significant value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94243 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Metadata.h | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h index 8766ea8003..f1e7a22a42 100644 --- a/include/llvm/Metadata.h +++ b/include/llvm/Metadata.h @@ -31,26 +31,10 @@ template<typename ValueSubClass, typename ItemParentClass> //===----------------------------------------------------------------------===// -// MetadataBase - A base class for MDNode and MDString. -class MetadataBase : public Value { -protected: - MetadataBase(const Type *Ty, unsigned scid) - : Value(Ty, scid) {} - -public: - - /// Methods for support type inquiry through isa, cast, and dyn_cast: - static inline bool classof(const MetadataBase *) { return true; } - static bool classof(const Value *V) { - return V->getValueID() == MDStringVal || V->getValueID() == MDNodeVal; - } -}; - -//===----------------------------------------------------------------------===// /// MDString - a single uniqued string. /// These are used to efficiently contain a byte sequence for metadata. /// MDString is always unnamd. -class MDString : public MetadataBase { +class MDString : public Value { MDString(const MDString &); // DO NOT IMPLEMENT StringRef Str; @@ -87,7 +71,7 @@ class MDNodeOperand; //===----------------------------------------------------------------------===// /// MDNode - a tuple of other values. -class MDNode : public MetadataBase, public FoldingSetNode { +class MDNode : public Value, public FoldingSetNode { MDNode(const MDNode &); // DO NOT IMPLEMENT void operator=(const MDNode &); // DO NOT IMPLEMENT friend class MDNodeOperand; |