[dsymutil] Pass the verbosity flag down to the processing. NFC for now.
authorFrederic Riss <friss@apple.com>
Tue, 16 Dec 2014 20:22:11 +0000 (20:22 +0000)
committerFrederic Riss <friss@apple.com>
Tue, 16 Dec 2014 20:22:11 +0000 (20:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224361 91177308-0d34-0410-b5e6-96231b3b80d8

tools/dsymutil/DwarfLinker.cpp
tools/dsymutil/MachODebugMapParser.cpp
tools/dsymutil/dsymutil.cpp
tools/dsymutil/dsymutil.h

index f1ad87566b0e70f4efd5295d3d81f7ec9dc90eb7..ad471055bd9c19db8b16bdaf8ff22a05902c147b 100644 (file)
@@ -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;
 }
index c67e90c64eb486bfb6f0e97f0366460c504fcf5d..6fabe00ac919bd71f182ac6fcf907039ccb00e69 100644 (file)
@@ -240,7 +240,8 @@ void MachODebugMapParser::loadMainBinarySymbols() {
 namespace llvm {
 namespace dsymutil {
 llvm::ErrorOr<std::unique_ptr<DebugMap>> parseDebugMap(StringRef InputFile,
-                                                       StringRef PrependPath) {
+                                                       StringRef PrependPath,
+                                                       bool Verbose) {
   MachODebugMapParser Parser(InputFile, PrependPath);
   return Parser.parse();
 }
index 4eaa67b326f2d6121e21b6b7cf886b3d9f3c345f..8f1c47bea47d7104c1a09213955e00ef296bbad4 100644 (file)
@@ -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);
 }
index 83d9a39bcf8bd74372819192ff1c0d65bf3ab475..9203beaf67741d37a6f568c14104999aedd6fab0 100644 (file)
@@ -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<std::unique_ptr<DebugMap>>
-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