diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp index 630ab0723ae7..f1a5ea92ed7d 100644 --- a/clang/Driver/clang.cpp +++ b/clang/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 +VerifyDiagnostics("verify", + llvm::cl::desc("Verify emitted diagnostics and warnings.")); + //===----------------------------------------------------------------------===// // Language Options //===----------------------------------------------------------------------===// @@ -346,10 +350,6 @@ static llvm::cl::opt WarnUnusedMacros("Wunused_macros", llvm::cl::desc("Warn for unused macros in the main translation unit")); -static llvm::cl::opt -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) {