diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2024-01-26 14:53:07 +0000 |
---|---|---|
committer | Jeremy Morse <jeremy.morse@sony.com> | 2024-01-26 14:53:07 +0000 |
commit | 157b62612a7c72094b5b35a6b01368e3221086cd (patch) | |
tree | 8f6db249ae334802ed9283a8149d31566bf2bb4d /llvm/lib/IR/Function.cpp | |
parent | 9058503d2690022642d952ee80ecde5ecdbc79ca (diff) | |
download | llvm-157b62612a7c72094b5b35a6b01368e3221086cd.zip llvm-157b62612a7c72094b5b35a6b01368e3221086cd.tar.gz llvm-157b62612a7c72094b5b35a6b01368e3221086cd.tar.bz2 |
Revert "[DebugInfo][RemoveDIs] Don't pointlessly scan funcs for debug-info (#79327)"
This reverts commit c23608b8d58bdeb0134d99168e6d0335da2c8366.
It looks like this depends on #79345, which isn't going to land today, so revert for now.
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 6 |
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(); } } |