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 | a0566979b7cf6da2aca187e9d71ab961de80727d (patch) | |
tree | 102a56209d4ea5d65bd9e445f0502ac3f3c72081 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 9330b2f7ecd767f95c829b8a28a41ff32cd99d2c (diff) | |
download | bcm5719-llvm-a0566979b7cf6da2aca187e9d71ab961de80727d.tar.gz bcm5719-llvm-a0566979b7cf6da2aca187e9d71ab961de80727d.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.
llvm-svn: 92259
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 568968d9276..7dffafa8314 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -17,7 +17,6 @@ #include "llvm/DerivedTypes.h" #include "llvm/InlineAsm.h" #include "llvm/IntrinsicInst.h" -#include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/Operator.h" #include "llvm/AutoUpgrade.h" @@ -840,7 +839,7 @@ bool BitcodeReader::ParseMetadata() { for (unsigned i = 1; i != RecordLength; ++i) Name[i-1] = Record[i]; - unsigned NewKind = Context.getMetadata().getMDKindID(Name.str()); + unsigned NewKind = TheModule->getMDKindID(Name.str()); assert(Kind == NewKind && "FIXME: Unable to handle custom metadata mismatch!");(void)NewKind; break; |