mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
DebugInfo: Update signature of DICompileUnit::replace*()
Change `DICompileUnit::replaceSubprograms()` and `DICompileUnit::replaceGlobalVariables()` to match the `MDCompileUnit` equivalents that they're wrapping. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234852 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -171,7 +171,7 @@ static void AddOperand(DICompileUnit CU, MDSubprogramArray SPs, Metadata *NewSP)
|
||||
for (auto *SP : SPs)
|
||||
NewSPs.push_back(SP);
|
||||
NewSPs.push_back(NewSP);
|
||||
CU.replaceSubprograms(DIArray(MDNode::get(CU->getContext(), NewSPs)));
|
||||
CU.replaceSubprograms(MDTuple::get(CU->getContext(), NewSPs));
|
||||
}
|
||||
|
||||
// Clone the module-level debug info associated with OldFunc. The cloned data
|
||||
|
Reference in New Issue
Block a user