[llvm] r224361 - [dsymutil] Pass the verbosity flag down to the processing. NFC for now.
Frederic Riss
friss at apple.com
Tue Dec 16 12:22:11 PST 2014
Author: friss
Date: Tue Dec 16 14:22:11 2014
New Revision: 224361
URL: http://llvm.org/viewvc/llvm-project?rev=224361&view=rev
Log:
[dsymutil] Pass the verbosity flag down to the processing. NFC for now.
Modified:
llvm/trunk/tools/dsymutil/DwarfLinker.cpp
llvm/trunk/tools/dsymutil/MachODebugMapParser.cpp
llvm/trunk/tools/dsymutil/dsymutil.cpp
llvm/trunk/tools/dsymutil/dsymutil.h
Modified: llvm/trunk/tools/dsymutil/DwarfLinker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/DwarfLinker.cpp?rev=224361&r1=224360&r2=224361&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/DwarfLinker.cpp (original)
+++ llvm/trunk/tools/dsymutil/DwarfLinker.cpp Tue Dec 16 14:22:11 2014
@@ -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;
}
Modified: llvm/trunk/tools/dsymutil/MachODebugMapParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/MachODebugMapParser.cpp?rev=224361&r1=224360&r2=224361&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/MachODebugMapParser.cpp (original)
+++ llvm/trunk/tools/dsymutil/MachODebugMapParser.cpp Tue Dec 16 14:22:11 2014
@@ -240,7 +240,8 @@ void MachODebugMapParser::loadMainBinary
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();
}
Modified: llvm/trunk/tools/dsymutil/dsymutil.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/dsymutil.cpp?rev=224361&r1=224360&r2=224361&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/dsymutil.cpp (original)
+++ llvm/trunk/tools/dsymutil/dsymutil.cpp Tue Dec 16 14:22:11 2014
@@ -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);
}
Modified: llvm/trunk/tools/dsymutil/dsymutil.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/dsymutil.h?rev=224361&r1=224360&r2=224361&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/dsymutil.h (original)
+++ llvm/trunk/tools/dsymutil/dsymutil.h Tue Dec 16 14:22:11 2014
@@ -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
More information about the llvm-commits
mailing list