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
This commit is contained in:
Chris Lattner
2009-12-29 09:01:33 +00:00
parent e3e38ea9fb
commit 081134741b
19 changed files with 143 additions and 220 deletions

View File

@@ -22,7 +22,6 @@ namespace llvm {
class LLVMContext;
class MDNode;
class MetadataContextImpl;
template<typename ValueSubClass, typename ItemParentClass>
class SymbolTableListTraits;
@@ -316,7 +315,6 @@ private:
return Value::getSubclassDataFromValue();
}
friend class MetadataContextImpl;
void setHasMetadata(bool V) {
setValueSubclassData((getSubclassDataFromValue() & ~HasMetadataBit) |
(V ? HasMetadataBit : 0));