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:
Duncan P. N. Exon Smith
2015-04-14 03:51:36 +00:00
parent 32439e7d88
commit 35adce33f1
4 changed files with 8 additions and 16 deletions
+1 -1
View File
@@ -345,7 +345,7 @@ bool StripDeadDebugInfo::runOnModule(Module &M) {
// subprogram list/global variable list with our new live subprogram/global
// variable list.
if (SubprogramChange) {
DIC.replaceSubprograms(DIArray(MDNode::get(C, LiveSubprograms)));
DIC.replaceSubprograms(MDTuple::get(C, LiveSubprograms));
Changed = true;
}