components/llvm/patches/022-solaris-LLVM-tools-llvm-as.patch
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Thu, 03 Nov 2016 18:25:07 -0700
changeset 7243 f2d8b072e412
parent 6512 92717ce71105
permissions -rw-r--r--
23317769 libdbus-glib: shadow man page libdbus-glib-1.3lib does not load

# 24314638 LLVM CommandLine subsystem is busted
# 3.9.X for upstream.
--- tools/llvm-as/llvm-as.cpp	2015-10-04 10:33:43.000000000 -0400
+++ tools/llvm-as/llvm-as.cpp	2016-05-08 23:19:20.579431896 -0400
@@ -28,15 +28,21 @@
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/SystemUtils.h"
 #include "llvm/Support/ToolOutputFile.h"
-#include <memory>
 using namespace llvm;
 
+#include <memory>
+#include <string>
+
 static cl::opt<std::string>
-InputFilename(cl::Positional, cl::desc("<input .llvm file>"), cl::init("-"));
+InputFilename(cl::Positional, cl::desc("<input file>"),
+              cl::NotHidden,
+              cl::Optional,
+              cl::init(std::string("-")),
+              cl::ValuePositionalNoArgs);
 
 static cl::opt<std::string>
 OutputFilename("o", cl::desc("Override output filename"),
-               cl::value_desc("filename"));
+               cl::value_desc("<output filename>"));
 
 static cl::opt<bool>
 Force("f", cl::desc("Enable binary output on terminals"));