diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2018-08-03 12:01:43 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2018-08-03 12:01:43 +0000 |
| commit | 3a92c5c1d38f045cd199093a84f49bb961b8a64e (patch) | |
| tree | a96e97a00d86841c8bf7cadea004c0634dfc02c2 /llvm/lib/DebugInfo | |
| parent | d48d5f086ff4d71ee03d3f0f068e69de7cb5f684 (diff) | |
| download | bcm5719-llvm-3a92c5c1d38f045cd199093a84f49bb961b8a64e.tar.gz bcm5719-llvm-3a92c5c1d38f045cd199093a84f49bb961b8a64e.zip | |
[DebugInfo/Verifier] Don't emit error for missing module in index
We don't expect module names to be present in the index. This patch adds
DW_TAG_module to the blacklist.
Differential revision: https://reviews.llvm.org/D50237
llvm-svn: 338878
Diffstat (limited to 'llvm/lib/DebugInfo')
| -rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp index d4677f60afa..85dd84b5417 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp @@ -1211,8 +1211,9 @@ unsigned DWARFVerifier::verifyNameIndexCompleteness( // make sure we catch any missing items, we instead blacklist all TAGs that we // know shouldn't be indexed. switch (Die.getTag()) { - // Compile unit has a name but it shouldn't be indexed. + // Compile units and modules have names but shouldn't be indexed. case DW_TAG_compile_unit: + case DW_TAG_module: return 0; // Function and template parameters are not globally visible, so we shouldn't |

