aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-09-26 19:42:19 +0000
committerTed Kremenek <kremenek@apple.com>2007-09-26 19:42:19 +0000
commit41193e4464818d5c4809a8a4140bb0bf26d7733f (patch)
tree5d98e374d250d6c6eed5cc683242b38be3fce51d
parent42e04c7a7f3518b3b2635eaffa233a56e73b91b5 (diff)
Moved "VerifyDiagnostics" variable declaration to right below ProgAction
declaration. This is because this option is logically tightly connected to the actions defined in ProgAction. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42364 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Driver/clang.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 630ab0723a..f1a5ea92ed 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -109,6 +109,10 @@ ProgAction(llvm::cl::desc("Choose output type:"), llvm::cl::ZeroOrMore,
"Build ASTs then convert to LLVM, emit .ll file"),
clEnumValEnd));
+static llvm::cl::opt<bool>
+VerifyDiagnostics("verify",
+ llvm::cl::desc("Verify emitted diagnostics and warnings."));
+
//===----------------------------------------------------------------------===//
// Language Options
//===----------------------------------------------------------------------===//
@@ -346,10 +350,6 @@ static llvm::cl::opt<bool>
WarnUnusedMacros("Wunused_macros",
llvm::cl::desc("Warn for unused macros in the main translation unit"));
-static llvm::cl::opt<bool>
-VerifyDiagnostics("verify",
- llvm::cl::desc("Verify emitted diagnostics and warnings."));
-
/// InitializeDiagnostics - Initialize the diagnostic object, based on the
/// current command line option settings.
static void InitializeDiagnostics(Diagnostic &Diags) {