From e30e678865b8dc1b69ef1c26e7567ffd1300553c Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 28 Sep 2009 21:41:20 +0000 Subject: s/class Metadata/class MetadataContext/g git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83019 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bitcode/Writer/BitcodeWriter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/Bitcode/Writer/BitcodeWriter.cpp') diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index 3511dbc96c..5857c5914b 100644 --- a/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -562,15 +562,15 @@ static void WriteMetadataAttachment(const Function &F, // Write metadata attachments // METADATA_ATTACHMENT - [m x [value, [n x [id, mdnode]]] - Metadata &TheMetadata = F.getContext().getMetadata(); + MetadataContext &TheMetadata = F.getContext().getMetadata(); for (Function::const_iterator BB = F.begin(), E = F.end(); BB != E; ++BB) for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); I != E; ++I) { - const Metadata::MDMapTy *P = TheMetadata.getMDs(I); + const MetadataContext::MDMapTy *P = TheMetadata.getMDs(I); if (!P) continue; bool RecordedInstruction = false; - for (Metadata::MDMapTy::const_iterator PI = P->begin(), PE = P->end(); - PI != PE; ++PI) { + for (MetadataContext::MDMapTy::const_iterator PI = P->begin(), + PE = P->end(); PI != PE; ++PI) { if (MDNode *ND = dyn_cast_or_null(PI->second)) { if (RecordedInstruction == false) { Record.push_back(VE.getInstructionID(I)); @@ -601,7 +601,7 @@ static void WriteModuleMetadataStore(const Module *M, // Write metadata kinds // METADATA_KIND - [n x [id, name]] - Metadata &TheMetadata = M->getContext().getMetadata(); + MetadataContext &TheMetadata = M->getContext().getMetadata(); const StringMap *Kinds = TheMetadata.getHandlerNames(); for (StringMap::const_iterator I = Kinds->begin(), E = Kinds->end(); I != E; ++I) { -- cgit v1.2.3-18-g5258