diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-29 09:01:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-29 09:01:33 +0000 |
commit | 081134741b40b342fb2f85722c9cea5d412489a8 (patch) | |
tree | 73cd43fda7814ed745c3c31de92ff8c7bbf93721 /include/llvm/Metadata.h | |
parent | e3e38ea9fb70cbd8cc33111589c92c0a61674679 (diff) | |
download | llvm-081134741b40b342fb2f85722c9cea5d412489a8.tar.gz llvm-081134741b40b342fb2f85722c9cea5d412489a8.tar.bz2 llvm-081134741b40b342fb2f85722c9cea5d412489a8.tar.xz |
Final step in the metadata API restructuring: move the
getMDKindID/getMDKindNames methods to LLVMContext (and add
convenience methods to Module), eliminating MetadataContext.
Move the state that it maintains out to LLVMContext.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92259 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Metadata.h')
-rw-r--r-- | include/llvm/Metadata.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h index c25ce22511..86eba354e2 100644 --- a/include/llvm/Metadata.h +++ b/include/llvm/Metadata.h @@ -25,7 +25,6 @@ class Constant; class Instruction; class LLVMContext; class Module; -class MetadataContextImpl; template <typename T> class SmallVectorImpl; //===----------------------------------------------------------------------===// @@ -204,28 +203,6 @@ public: } }; -//===----------------------------------------------------------------------===// -/// MetadataContext - MetadataContext handles uniquing and assignment of IDs for -/// custom metadata types. -/// -class MetadataContext { - MetadataContext(MetadataContext&); // DO NOT IMPLEMENT - void operator=(MetadataContext&); // DO NOT IMPLEMENT - - MetadataContextImpl *const pImpl; - friend class Instruction; -public: - MetadataContext(); - ~MetadataContext(); - - /// getMDKindID - Return a unique non-zero ID for the specified metadata kind. - unsigned getMDKindID(StringRef Name) const; - - /// getMDKindNames - Populate client supplied SmallVector with the name for - /// each custom metadata ID. ID #0 is not used, so it is filled in as empty. - void getMDKindNames(SmallVectorImpl<StringRef> &) const; -}; - } // end llvm namespace #endif |