summaryrefslogtreecommitdiffstats
path: root/llvm/tools/dsymutil/dsymutil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/dsymutil/dsymutil.cpp')
-rw-r--r--llvm/tools/dsymutil/dsymutil.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/tools/dsymutil/dsymutil.cpp b/llvm/tools/dsymutil/dsymutil.cpp
index 2e633fcac6a..5fb3a4b7705 100644
--- a/llvm/tools/dsymutil/dsymutil.cpp
+++ b/llvm/tools/dsymutil/dsymutil.cpp
@@ -66,6 +66,11 @@ static opt<std::string> OsoPrependPath(
desc("Specify a directory to prepend to the paths of object files."),
value_desc("path"), cat(DsymCategory));
+static opt<bool> Assembly(
+ "S",
+ desc("Output textual assembly instead of a binary dSYM companion file."),
+ init(false), cat(DsymCategory), cl::Hidden);
+
static opt<bool> DumpStab(
"symtab",
desc("Dumps the symbol table found in executable or object file(s) and\n"
@@ -322,6 +327,9 @@ static Expected<LinkOptions> getOptions() {
Options.NoTimestamp = NoTimestamp;
Options.PrependPath = OsoPrependPath;
+ if (Assembly)
+ Options.FileType = OutputFileType::Assembly;
+
if (Options.Update && std::find(InputFiles.begin(), InputFiles.end(), "-") !=
InputFiles.end()) {
// FIXME: We cannot use stdin for an update because stdin will be
OpenPOWER on IntegriCloud