mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
s/class Metadata/class MetadataContext/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83019 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1038,7 +1038,7 @@ bool LLParser::ParseOptionalDbgInfo() {
|
||||
MetadataBase *Node;
|
||||
if (ParseMDNode(Node)) return true;
|
||||
|
||||
Metadata &TheMetadata = M->getContext().getMetadata();
|
||||
MetadataContext &TheMetadata = M->getContext().getMetadata();
|
||||
unsigned MDDbgKind = TheMetadata.getMDKind("dbg");
|
||||
if (!MDDbgKind)
|
||||
MDDbgKind = TheMetadata.RegisterMDKind("dbg");
|
||||
@ -2656,7 +2656,7 @@ bool LLParser::ParseBasicBlock(PerFunctionState &PFS) {
|
||||
ParseOptionalDbgInfo();
|
||||
|
||||
// Set metadata attached with this instruction.
|
||||
Metadata &TheMetadata = M->getContext().getMetadata();
|
||||
MetadataContext &TheMetadata = M->getContext().getMetadata();
|
||||
for (SmallVector<std::pair<unsigned, MDNode *>, 2>::iterator
|
||||
MDI = MDsOnInst.begin(), MDE = MDsOnInst.end(); MDI != MDE; ++MDI)
|
||||
TheMetadata.setMD(MDI->first, MDI->second, Inst);
|
||||
|
Reference in New Issue
Block a user