summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt/Debugify.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-06-26 18:54:10 +0000
committerVedant Kumar <vsk@apple.com>2018-06-26 18:54:10 +0000
commit2e6c5f96dca21f9b38cfdde3ed40aa7d530d124f (patch)
treefd71c83de1b922803ae27ceaffd148f1acaad498 /llvm/tools/opt/Debugify.cpp
parentb32823cbe979a8115adb097d6ef0017b0e9a7f63 (diff)
downloadbcm5719-llvm-2e6c5f96dca21f9b38cfdde3ed40aa7d530d124f.tar.gz
bcm5719-llvm-2e6c5f96dca21f9b38cfdde3ed40aa7d530d124f.zip
[Debugify] Don't treat missing dbg.values as an error (PR37942)
When checking the debug info in a module, don't treat a missing dbg.value as an error. The dbg.value may simply have been DCE'd, in which case the debugger has enough information to display the variable as <optimized out>. llvm-svn: 335647
Diffstat (limited to 'llvm/tools/opt/Debugify.cpp')
-rw-r--r--llvm/tools/opt/Debugify.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/opt/Debugify.cpp b/llvm/tools/opt/Debugify.cpp
index 32e0023b153..e81facf7988 100644
--- a/llvm/tools/opt/Debugify.cpp
+++ b/llvm/tools/opt/Debugify.cpp
@@ -226,8 +226,7 @@ bool checkDebugifyMetadata(Module &M,
dbg() << "WARNING: Missing line " << Idx + 1 << "\n";
for (unsigned Idx : MissingVars.set_bits())
- dbg() << "ERROR: Missing variable " << Idx + 1 << "\n";
- HasErrors |= MissingVars.count() > 0;
+ dbg() << "WARNING: Missing variable " << Idx + 1 << "\n";
dbg() << Banner;
if (!NameOfWrappedPass.empty())
OpenPOWER on IntegriCloud