components/llvm/patches/017-solaris-clang-tools-tablegen.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 upstrea.
--- tools/clang/utils/TableGen/TableGen.cpp	2016-01-03 23:51:46.000000000 -0500
+++ tools/clang/utils/TableGen/TableGen.cpp	2016-05-08 23:19:20.578431871 -0400
@@ -56,8 +56,7 @@
   GenAttrDocs
 };
 
-namespace {
-cl::opt<ActionType> Action(
+static cl::opt<ActionType> Action(
     cl::desc("Action to perform:"),
     cl::values(
         clEnumValN(GenClangAttrClasses, "gen-clang-attr-classes",
@@ -136,7 +135,7 @@
                    "Generate attribute documentation"),
         clEnumValEnd));
 
-cl::opt<std::string>
+static cl::opt<std::string>
 ClangComponent("clang-component",
                cl::desc("Only use warnings from specified component"),
                cl::value_desc("component"), cl::Hidden);
@@ -238,7 +237,6 @@
 
   return false;
 }
-}
 
 int main(int argc, char **argv) {
   sys::PrintStackTraceOnErrorSignal();