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/VMCore/IRBuilder.cpp | |
parent | e3e38ea9fb70cbd8cc33111589c92c0a61674679 (diff) | |
download | external_llvm-081134741b40b342fb2f85722c9cea5d412489a8.tar.gz external_llvm-081134741b40b342fb2f85722c9cea5d412489a8.tar.bz2 external_llvm-081134741b40b342fb2f85722c9cea5d412489a8.zip |
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/IRBuilder.cpp')
-rw-r--r-- | lib/VMCore/IRBuilder.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VMCore/IRBuilder.cpp b/lib/VMCore/IRBuilder.cpp index 4c0299c6fc..699bf0f653 100644 --- a/lib/VMCore/IRBuilder.cpp +++ b/lib/VMCore/IRBuilder.cpp @@ -15,7 +15,6 @@ #include "llvm/Support/IRBuilder.h" #include "llvm/GlobalVariable.h" #include "llvm/Function.h" -#include "llvm/Metadata.h" #include "llvm/LLVMContext.h" using namespace llvm; @@ -37,7 +36,7 @@ Value *IRBuilderBase::CreateGlobalString(const char *Str, const Twine &Name) { /// information. void IRBuilderBase::SetCurrentDebugLocation(MDNode *L) { if (DbgMDKind == 0) - DbgMDKind = Context.getMetadata().getMDKindID("dbg"); + DbgMDKind = Context.getMDKindID("dbg"); CurDbgLocation = L; } |