//===--- BuiltinOptions.cpp - The LLVM Compiler Driver ----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open // Source License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // Definitions of all global command-line option variables. // //===----------------------------------------------------------------------===// #include "llvm/CompilerDriver/BuiltinOptions.h" #ifdef ENABLE_LLVMC_DYNAMIC_PLUGINS #include "llvm/Support/PluginLoader.h" #endif namespace cl = llvm::cl; // External linkage here is intentional. cl::list InputFilenames(cl::Positional, cl::desc(""), cl::ZeroOrMore); cl::opt OutputFilename("o", cl::desc("Output file name"), cl::value_desc("file"), cl::Prefix); cl::opt TempDirname("temp-dir", cl::desc("Temp dir name"), cl::value_desc(""), cl::Prefix); cl::list Languages("x", cl::desc("Specify the language of the following input files"), cl::ZeroOrMore); cl::opt DryRun("dry-run", cl::desc("Only pretend to run commands")); cl::opt Time("time", cl::desc("Time individual commands")); cl::opt VerboseMode("v", cl::desc("Enable verbose mode")); cl::opt CheckGraph("check-graph", cl::desc("Check the compilation graph for errors"), cl::Hidden); cl::opt WriteGraph("write-graph", cl::desc("Write compilation-graph.dot file"), cl::Hidden); cl::opt ViewGraph("view-graph", cl::desc("Show compilation graph in GhostView"), cl::Hidden); cl::opt SaveTemps ("save-temps", cl::desc("Keep temporary files"), cl::init(SaveTempsEnum::Unset), cl::values(clEnumValN(SaveTempsEnum::Obj, "obj", "Save files in the directory specified with -o"), clEnumValN(SaveTempsEnum::Cwd, "cwd", "Use current working directory"), clEnumValN(SaveTempsEnum::Obj, "", "Same as 'cwd'"), clEnumValEnd), cl::ValueOptional);