summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-01-28 19:17:09 +0000
committerChris Bieneman <beanz@apple.com>2015-01-28 19:17:09 +0000
commitb268ba8022747423db4930bdeb4a4bdbff5d6066 (patch)
treeb0a1d25d178fc019003d008622bf92b5d14d362d /include
parenta5062b38a9201e80eb891e55908c05298382fba6 (diff)
Moving AddLiteralOption's declaration higher up in the header to make gcc happy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227348 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/CommandLine.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h
index 030907c1cf4..9910e7dcd60 100644
--- a/include/llvm/Support/CommandLine.h
+++ b/include/llvm/Support/CommandLine.h
@@ -73,6 +73,18 @@ void AddExtraVersionPrinter(void (*func)());
// (Currently not perfect, but best-effort.)
void PrintOptionValues();
+// Forward declaration - AddLiteralOption needs to be up here to make gcc happy.
+class Option;
+
+/// \brief Adds a new option for parsing and provides the option it refers to.
+///
+/// \param O pointer to the option
+/// \param Name the string name for the option to handle during parsing
+///
+/// Literal options are used by some parsers to register special option values.
+/// This is how the PassNameParser registers pass names for opt.
+void AddLiteralOption(Option &O, const char *Name);
+
//===----------------------------------------------------------------------===//
// Flags permitted to be passed to command line arguments
//
@@ -1937,15 +1949,6 @@ void HideUnrelatedOptions(cl::OptionCategory &Category);
/// option category to display in the -help output.
void HideUnrelatedOptions(ArrayRef<const cl::OptionCategory *> Categories);
-/// \brief Adds a new option for parsing and provides the option it refers to.
-///
-/// \param O pointer to the option
-/// \param Name the string name for the option to handle during parsing
-///
-/// Literal options are used by some parsers to register special option values.
-/// This is how the PassNameParser registers pass names for opt.
-void AddLiteralOption(Option &O, const char *Name);
-
} // End namespace cl
} // End namespace llvm