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 | a0d451f0c3b152920c0bc50ab6c5fb6b9eef89b4 (patch) | |
tree | 73cd43fda7814ed745c3c31de92ff8c7bbf93721 /lib/VMCore/AsmWriter.cpp | |
parent | 0b1a57873443a0473a6f62af961be56517a2cb8e (diff) | |
download | external_llvm-a0d451f0c3b152920c0bc50ab6c5fb6b9eef89b4.zip external_llvm-a0d451f0c3b152920c0bc50ab6c5fb6b9eef89b4.tar.gz external_llvm-a0d451f0c3b152920c0bc50ab6c5fb6b9eef89b4.tar.bz2 |
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/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index e82b3d9..a95a549 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -22,7 +22,6 @@ #include "llvm/DerivedTypes.h" #include "llvm/InlineAsm.h" #include "llvm/IntrinsicInst.h" -#include "llvm/LLVMContext.h" #include "llvm/Operator.h" #include "llvm/Module.h" #include "llvm/ValueSymbolTable.h" @@ -1338,7 +1337,7 @@ public: AddModuleTypesToPrinter(TypePrinter, NumberedTypes, M); // FIXME: Provide MDPrinter if (M) - M->getContext().getMetadata().getMDKindNames(MDNames); + M->getMDKindNames(MDNames); } void write(const Module *M) { printModule(M); } |