mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[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
This commit is contained in:
parent
e8819358a0
commit
ad1fff0c4d
@ -1211,8 +1211,9 @@ unsigned DWARFVerifier::verifyNameIndexCompleteness(
|
|||||||
// make sure we catch any missing items, we instead blacklist all TAGs that we
|
// make sure we catch any missing items, we instead blacklist all TAGs that we
|
||||||
// know shouldn't be indexed.
|
// know shouldn't be indexed.
|
||||||
switch (Die.getTag()) {
|
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_compile_unit:
|
||||||
|
case DW_TAG_module:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// Function and template parameters are not globally visible, so we shouldn't
|
// Function and template parameters are not globally visible, so we shouldn't
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
; ModuleID = '/Volumes/Data/apple-internal/llvm/tools/clang/test/Modules/debug-info-moduleimport.m'
|
; ModuleID = '/Volumes/Data/apple-internal/llvm/tools/clang/test/Modules/debug-info-moduleimport.m'
|
||||||
; RUN: llc %s -o %t -filetype=obj
|
; RUN: llc %s -accel-tables=Dwarf -o %t -filetype=obj
|
||||||
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s
|
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s
|
||||||
|
; RUN: llvm-dwarfdump -verify %t
|
||||||
; CHECK: DW_TAG_module
|
; CHECK: DW_TAG_module
|
||||||
; CHECK-NEXT: DW_AT_name {{.*}}"DebugModule"
|
; CHECK-NEXT: DW_AT_name {{.*}}"DebugModule"
|
||||||
; CHECK-NEXT: DW_AT_LLVM_config_macros {{.*}}"-DMODULES=0"
|
; CHECK-NEXT: DW_AT_LLVM_config_macros {{.*}}"-DMODULES=0"
|
||||||
|
Loading…
Reference in New Issue
Block a user