aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index 9749d1c..622d169 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
@@ -412,7 +412,7 @@ void CodeViewDebug::emitDebugInfoForFunction(const Function *GV,
assert(Fn);
StringRef FuncName;
- if (auto *SP = getDISubprogram(GV))
+ if (auto *SP = GV->getSubprogram())
FuncName = SP->getDisplayName();
// If our DISubprogram name is empty, use the mangled name.
@@ -752,7 +752,7 @@ void CodeViewDebug::endFunction(const MachineFunction *MF) {
assert(FnDebugInfo.count(GV));
assert(CurFn == &FnDebugInfo[GV]);
- collectVariableInfo(getDISubprogram(GV));
+ collectVariableInfo(GV->getSubprogram());
DebugHandlerBase::endFunction(MF);