X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=tools%2Fdsymutil%2Fdsymutil.h;h=4089187798334e55611522d287b36b5a78d17156;hb=0f58c38ebd4aebe835edf444916c8f7cfe8e2a79;hp=9203beaf67741d37a6f568c14104999aedd6fab0;hpb=f3ab9b9e63933b9e1b7b52bf93eb2f1143ff15e8;p=oota-llvm.git diff --git a/tools/dsymutil/dsymutil.h b/tools/dsymutil/dsymutil.h index 9203beaf677..40891877983 100644 --- a/tools/dsymutil/dsymutil.h +++ b/tools/dsymutil/dsymutil.h @@ -23,17 +23,26 @@ namespace llvm { namespace dsymutil { + +struct LinkOptions { + bool Verbose; ///< Verbosity + bool NoOutput; ///< Skip emitting output + + LinkOptions() : Verbose(false), NoOutput(false) {} +}; + /// \brief Extract the DebugMap from the given file. /// The file has to be a MachO object file. -llvm::ErrorOr> -parseDebugMap(StringRef InputFile, StringRef PrependPath = "", - bool Verbose = false); +llvm::ErrorOr> parseDebugMap(StringRef InputFile, + StringRef PrependPath, + bool Verbose, + bool InputIsYAML); /// \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 Verbose = false); + const LinkOptions &Options); } } #endif // LLVM_TOOLS_DSYMUTIL_DSYMUTIL_H