diff --git a/clang/tools/clang-cc/clang-cc.cpp b/clang/tools/clang-cc/clang-cc.cpp index 026f9e0005bc..f8ad8bac3956 100644 --- a/clang/tools/clang-cc/clang-cc.cpp +++ b/clang/tools/clang-cc/clang-cc.cpp @@ -616,10 +616,6 @@ static llvm::cl::opt DollarsInIdents("fdollars-in-identifiers", llvm::cl::desc("Allow '$' in identifiers")); - -static llvm::cl::opt -OptSize("Os", llvm::cl::desc("Optimize for size")); - static llvm::cl::opt DisableLLVMOptimizations("disable-llvm-optzns", llvm::cl::desc("Don't run LLVM optimization passes")); @@ -645,22 +641,6 @@ TargetTriple("triple", llvm::cl::desc("Specify target triple (e.g. i686-apple-darwin9)")); -// It might be nice to add bounds to the CommandLine library directly. -struct OptLevelParser : public llvm::cl::parser { - bool parse(llvm::cl::Option &O, llvm::StringRef ArgName, - llvm::StringRef Arg, unsigned &Val) { - if (llvm::cl::parser::parse(O, ArgName, Arg, Val)) - return true; - if (Val > 3) - return O.error("'" + Arg + "' invalid optimization level!"); - return false; - } -}; -static llvm::cl::opt -OptLevel("O", llvm::cl::Prefix, - llvm::cl::desc("Optimization level"), - llvm::cl::init(0)); - static llvm::cl::opt PICLevel("pic-level", llvm::cl::desc("Value for __PIC__")); @@ -1261,6 +1241,25 @@ static llvm::cl::opt NoMergeConstants("fno-merge-all-constants", llvm::cl::desc("Disallow merging of constants.")); +// It might be nice to add bounds to the CommandLine library directly. +struct OptLevelParser : public llvm::cl::parser { + bool parse(llvm::cl::Option &O, llvm::StringRef ArgName, + llvm::StringRef Arg, unsigned &Val) { + if (llvm::cl::parser::parse(O, ArgName, Arg, Val)) + return true; + if (Val > 3) + return O.error("'" + Arg + "' invalid optimization level!"); + return false; + } +}; +static llvm::cl::opt +OptLevel("O", llvm::cl::Prefix, + llvm::cl::desc("Optimization level"), + llvm::cl::init(0)); + +static llvm::cl::opt +OptSize("Os", llvm::cl::desc("Optimize for size")); + static llvm::cl::opt TargetCPU("mcpu", llvm::cl::desc("Target a specific cpu type (-mcpu=help for details)"));