aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r--llvm/lib/IR/Function.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp
index 58e180c..22e2455 100644
--- a/llvm/lib/IR/Function.cpp
+++ b/llvm/lib/IR/Function.cpp
@@ -83,17 +83,15 @@ static cl::opt<unsigned> NonGlobalValueMaxNameSize(
void Function::convertToNewDbgValues() {
IsNewDbgInfoFormat = true;
- bool HasNoDebugInfo = getSubprogram() == nullptr;
for (auto &BB : *this) {
- BB.convertToNewDbgValues(HasNoDebugInfo);
+ BB.convertToNewDbgValues();
}
}
void Function::convertFromNewDbgValues() {
IsNewDbgInfoFormat = false;
- bool HasNoDebugInfo = getSubprogram() == nullptr;
for (auto &BB : *this) {
- BB.convertFromNewDbgValues(HasNoDebugInfo);
+ BB.convertFromNewDbgValues();
}
}