From 081134741b40b342fb2f85722c9cea5d412489a8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 29 Dec 2009 09:01:33 +0000 Subject: 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 --- include/llvm/Metadata.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'include/llvm/Metadata.h') 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 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 &) const; -}; - } // end llvm namespace #endif -- cgit v1.2.3