[dsymutil] Not finding any debug info is not a fatal error
[oota-llvm.git] / tools / dsymutil / dsymutil.cpp
index 1b89ddcec20cfae7e62fff9a8ff134d6b3ddccb3..3d9851eca7ef491b274ef5cd8ffa9adadcaf2b37 100644 (file)
@@ -299,6 +299,10 @@ int main(int argc, char **argv) {
       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);