git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245959
91177308-0d34-0410-b5e6-
96231b3b80d8
--- /dev/null
+# REQUIRES: object-emission
+# RUN: llvm-dsymutil -f -oso-prepend-path=%p/../Inputs -y %s -o - 2>&1 | FileCheck %s
+
+---
+triple: 'thumbv7-apple-darwin'
+...
+
+# CHECK: warning: no debug symbols in executable (-arch thumbv7)
bool DwarfLinker::link(const DebugMap &Map) {
- if (Map.begin() == Map.end()) {
- errs() << "Empty debug map.\n";
- return false;
- }
-
if (!createStreamer(Map.getTriple(), OutputFilename))
return false;
if (DumpDebugMap)
continue;
+ if (Map->begin() == Map->end())
+ llvm::errs() << "warning: no debug symbols in executable (-arch "
+ << Map->getTriple().getArchName() << ")\n";
+
std::string OutputFile = getOutputFileName(InputFile, NeedsTempFiles);
if (OutputFile.empty() || !linkDwarf(OutputFile, *Map, Options))
exitDsymutil(1);