diff --git a/tools/dsymutil/DwarfLinker.cpp b/tools/dsymutil/DwarfLinker.cpp index f1ad87566b0..ad471055bd9 100644 --- a/tools/dsymutil/DwarfLinker.cpp +++ b/tools/dsymutil/DwarfLinker.cpp @@ -12,7 +12,7 @@ namespace llvm { namespace dsymutil { -bool linkDwarf(StringRef OutputFilename, const DebugMap &DM) { +bool linkDwarf(StringRef OutputFilename, const DebugMap &DM, bool Verbose) { // Do nothing for now. return true; } diff --git a/tools/dsymutil/MachODebugMapParser.cpp b/tools/dsymutil/MachODebugMapParser.cpp index c67e90c64eb..6fabe00ac91 100644 --- a/tools/dsymutil/MachODebugMapParser.cpp +++ b/tools/dsymutil/MachODebugMapParser.cpp @@ -240,7 +240,8 @@ void MachODebugMapParser::loadMainBinarySymbols() { namespace llvm { namespace dsymutil { llvm::ErrorOr> parseDebugMap(StringRef InputFile, - StringRef PrependPath) { + StringRef PrependPath, + bool Verbose) { MachODebugMapParser Parser(InputFile, PrependPath); return Parser.parse(); } diff --git a/tools/dsymutil/dsymutil.cpp b/tools/dsymutil/dsymutil.cpp index 4eaa67b326f..8f1c47bea47 100644 --- a/tools/dsymutil/dsymutil.cpp +++ b/tools/dsymutil/dsymutil.cpp @@ -51,7 +51,7 @@ int main(int argc, char **argv) { llvm::llvm_shutdown_obj Shutdown; llvm::cl::ParseCommandLineOptions(argc, argv, "llvm dsymutil\n"); - auto DebugMapPtrOrErr = parseDebugMap(InputFile, OsoPrependPath); + auto DebugMapPtrOrErr = parseDebugMap(InputFile, OsoPrependPath, Verbose); if (auto EC = DebugMapPtrOrErr.getError()) { llvm::errs() << "error: cannot parse the debug map for \"" << InputFile @@ -69,5 +69,5 @@ int main(int argc, char **argv) { if (OutputBasename == "-") OutputBasename = "a.out"; - return !linkDwarf(OutputBasename + ".dwarf", **DebugMapPtrOrErr); + return !linkDwarf(OutputBasename + ".dwarf", **DebugMapPtrOrErr, Verbose); } diff --git a/tools/dsymutil/dsymutil.h b/tools/dsymutil/dsymutil.h index 83d9a39bcf8..9203beaf677 100644 --- a/tools/dsymutil/dsymutil.h +++ b/tools/dsymutil/dsymutil.h @@ -26,12 +26,14 @@ namespace dsymutil { /// \brief Extract the DebugMap from the given file. /// The file has to be a MachO object file. llvm::ErrorOr> -parseDebugMap(StringRef InputFile, StringRef PrependPath = ""); +parseDebugMap(StringRef InputFile, StringRef PrependPath = "", + bool Verbose = false); /// \brief Link the Dwarf debuginfo as directed by the passed DebugMap /// \p DM into a DwarfFile named \p OutputFilename. /// \returns false if the link failed. -bool linkDwarf(StringRef OutputFilename, const DebugMap &DM); +bool linkDwarf(StringRef OutputFilename, const DebugMap &DM, + bool Verbose = false); } } #endif // LLVM_TOOLS_DSYMUTIL_DSYMUTIL_H