mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 16:37:42 +00:00
dsymutil: Only warn about missing clang modules once.
rdar://problem/22269336 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257664 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
307c714edd
commit
f6ffec95e3
Binary file not shown.
12
test/tools/dsymutil/X86/modules-warnings.test
Normal file
12
test/tools/dsymutil/X86/modules-warnings.test
Normal file
@ -0,0 +1,12 @@
|
||||
Test for module-related warnings.
|
||||
This reuses the files from the modules.m testcase.
|
||||
|
||||
RUN: rm -rf %t.dir && mkdir %t.dir
|
||||
RUN: cp %p/../Inputs/modules/1.o %p/../Inputs/modules/Foo.pcm %t.dir
|
||||
|
||||
RUN: llvm-dsymutil -f -oso-prepend-path=%t.dir -y \
|
||||
RUN: %p/dummy-debug-map.map -o %t 2>&1 | FileCheck %s
|
||||
|
||||
Module-not-found should be reported only once.
|
||||
CHECK: warning: {{.*}}Bar.pcm: No such file or directory
|
||||
CHECK-NOT: warning: {{.*}}Bar.pcm: No such file or directory
|
@ -3237,10 +3237,8 @@ void DwarfLinker::loadClangModule(StringRef Filename, StringRef ModulePath,
|
||||
auto &Obj =
|
||||
ModuleMap.addDebugMapObject(Path, sys::TimeValue::PosixZeroTime());
|
||||
auto ErrOrObj = loadObject(ObjHolder, Obj, ModuleMap);
|
||||
if (!ErrOrObj) {
|
||||
ClangModules.erase(ClangModules.find(Filename));
|
||||
if (!ErrOrObj)
|
||||
return;
|
||||
}
|
||||
|
||||
std::unique_ptr<CompileUnit> Unit;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user