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/Writer/BitcodeWriter.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/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 21548cd18d0..8454e54f652 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -19,8 +19,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/TypeSymbolTable.h" @@ -595,9 +593,8 @@ static void WriteModuleMetadataStore(const Module *M, BitstreamWriter &Stream) { // Write metadata kinds // METADATA_KIND - [n x [id, name]] - MetadataContext &TheMetadata = M->getContext().getMetadata(); SmallVector<StringRef, 4> Names; - TheMetadata.getMDKindNames(Names); + M->getMDKindNames(Names); assert(Names[0] == "" && "MDKind #0 is invalid"); if (Names.size() == 1) return; |