[llvm-lto] clang-format before working on this file.

llvm-svn: 266250
This commit is contained in:
Davide Italiano 2016-04-13 21:41:35 +00:00
parent d295b00ae9
commit b10e893273
1 changed files with 30 additions and 35 deletions

View File

@ -36,32 +36,28 @@
using namespace llvm; using namespace llvm;
static cl::opt<char> static cl::opt<char>
OptLevel("O", OptLevel("O", cl::desc("Optimization level. [-O0, -O1, -O2, or -O3] "
cl::desc("Optimization level. [-O0, -O1, -O2, or -O3] " "(default = '-O2')"),
"(default = '-O2')"), cl::Prefix, cl::ZeroOrMore, cl::init('2'));
cl::Prefix,
cl::ZeroOrMore,
cl::init('2'));
static cl::opt<bool> DisableVerify( static cl::opt<bool> DisableVerify(
"disable-verify", cl::init(false), "disable-verify", cl::init(false),
cl::desc("Do not run the verifier during the optimization pipeline")); cl::desc("Do not run the verifier during the optimization pipeline"));
static cl::opt<bool> static cl::opt<bool> DisableInline("disable-inlining", cl::init(false),
DisableInline("disable-inlining", cl::init(false), cl::desc("Do not run the inliner pass"));
cl::desc("Do not run the inliner pass"));
static cl::opt<bool> static cl::opt<bool>
DisableGVNLoadPRE("disable-gvn-loadpre", cl::init(false), DisableGVNLoadPRE("disable-gvn-loadpre", cl::init(false),
cl::desc("Do not run the GVN load PRE pass")); cl::desc("Do not run the GVN load PRE pass"));
static cl::opt<bool> static cl::opt<bool> DisableLTOVectorization(
DisableLTOVectorization("disable-lto-vectorization", cl::init(false), "disable-lto-vectorization", cl::init(false),
cl::desc("Do not run loop or slp vectorization during LTO")); cl::desc("Do not run loop or slp vectorization during LTO"));
static cl::opt<bool> static cl::opt<bool> UseDiagnosticHandler(
UseDiagnosticHandler("use-diagnostic-handler", cl::init(false), "use-diagnostic-handler", cl::init(false),
cl::desc("Use a diagnostic handler to test the handler interface")); cl::desc("Use a diagnostic handler to test the handler interface"));
static cl::opt<bool> static cl::opt<bool>
ThinLTO("thinlto", cl::init(false), ThinLTO("thinlto", cl::init(false),
@ -98,27 +94,25 @@ static cl::opt<std::string>
"to perform the promotion and/or importing.")); "to perform the promotion and/or importing."));
static cl::opt<bool> static cl::opt<bool>
SaveModuleFile("save-merged-module", cl::init(false), SaveModuleFile("save-merged-module", cl::init(false),
cl::desc("Write merged LTO module to file before CodeGen")); cl::desc("Write merged LTO module to file before CodeGen"));
static cl::list<std::string> InputFilenames(cl::Positional, cl::OneOrMore,
cl::desc("<input bitcode files>"));
static cl::opt<std::string> OutputFilename("o", cl::init(""),
cl::desc("Override output filename"),
cl::value_desc("filename"));
static cl::list<std::string> static cl::list<std::string>
InputFilenames(cl::Positional, cl::OneOrMore, ExportedSymbols("exported-symbol",
cl::desc("<input bitcode files>")); cl::desc("Symbol to export from the resulting object file"),
cl::ZeroOrMore);
static cl::opt<std::string>
OutputFilename("o", cl::init(""),
cl::desc("Override output filename"),
cl::value_desc("filename"));
static cl::list<std::string> static cl::list<std::string>
ExportedSymbols("exported-symbol", DSOSymbols("dso-symbol",
cl::desc("Symbol to export from the resulting object file"), cl::desc("Symbol to put in the symtab in the resulting dso"),
cl::ZeroOrMore); cl::ZeroOrMore);
static cl::list<std::string>
DSOSymbols("dso-symbol",
cl::desc("Symbol to put in the symtab in the resulting dso"),
cl::ZeroOrMore);
static cl::opt<bool> ListSymbolsOnly( static cl::opt<bool> ListSymbolsOnly(
"list-symbols-only", cl::init(false), "list-symbols-only", cl::init(false),
@ -609,7 +603,8 @@ int main(int argc, char **argv) {
CodeGen.setModule(std::move(Module)); CodeGen.setModule(std::move(Module));
} else if (!CodeGen.addModule(Module.get())) { } else if (!CodeGen.addModule(Module.get())) {
// Print a message here so that we know addModule() did not abort. // Print a message here so that we know addModule() did not abort.
errs() << argv[0] << ": error adding file '" << InputFilenames[i] << "'\n"; errs() << argv[0] << ": error adding file '" << InputFilenames[i]
<< "'\n";
return 1; return 1;
} }
} }