From f3e634b8fb43374c3896bee8fde351d128f4a9c7 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 24 Sep 2015 16:10:14 +0000 Subject: dsymutil: Fix the condition to distinguish module imports form definitions. llvm-svn: 248512 --- llvm/tools/dsymutil/DwarfLinker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/dsymutil/DwarfLinker.cpp') diff --git a/llvm/tools/dsymutil/DwarfLinker.cpp b/llvm/tools/dsymutil/DwarfLinker.cpp index 1aa15c5fb67..8489189cc16 100644 --- a/llvm/tools/dsymutil/DwarfLinker.cpp +++ b/llvm/tools/dsymutil/DwarfLinker.cpp @@ -1780,7 +1780,7 @@ static bool analyzeContextInfo(const DWARFDebugInfoEntryMinimal *DIE, // definitions match)." // // We treat non-C++ modules like namespaces for this reason. - if (DIE->getTag() == dwarf::DW_TAG_module && + if (DIE->getTag() == dwarf::DW_TAG_module && ParentIdx == 0 && DIE->getAttributeValueAsString(&CU.getOrigUnit(), dwarf::DW_AT_name, "") != CU.getClangModuleName()) { InImportedModule = true; -- cgit v1.2.3