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 /lib/AsmParser/LLParser.cpp | |
parent | e3e38ea9fb70cbd8cc33111589c92c0a61674679 (diff) |
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 'lib/AsmParser/LLParser.cpp')
-rw-r--r-- | lib/AsmParser/LLParser.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index d9d2a4b2ad..351245d8e8 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -18,8 +18,6 @@ #include "llvm/DerivedTypes.h" #include "llvm/InlineAsm.h" #include "llvm/Instructions.h" -#include "llvm/LLVMContext.h" -#include "llvm/Metadata.h" #include "llvm/Module.h" #include "llvm/Operator.h" #include "llvm/ValueSymbolTable.h" @@ -1122,8 +1120,7 @@ bool LLParser::ParseOptionalCustomMetadata() { MetadataBase *Node; if (ParseMDNode(Node)) return true; - MetadataContext &TheMetadata = M->getContext().getMetadata(); - unsigned MDK = TheMetadata.getMDKindID(Name.c_str()); + unsigned MDK = M->getMDKindID(Name.c_str()); MDsOnInst.push_back(std::make_pair(MDK, cast<MDNode>(Node))); return false; } |