Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1002)

Side by Side Diff: tools/opt/opt.cpp

Issue 14329025: Check for metadata in PNaCl ABI checker. (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: cleanup Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 //===- opt.cpp - The LLVM Modular Optimizer -------------------------------===// 1 //===- opt.cpp - The LLVM Modular Optimizer -------------------------------===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // The LLVM Compiler Infrastructure
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // Optimizations may be specified an arbitrary number of times on the command 10 // Optimizations may be specified an arbitrary number of times on the command
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 // @LOCALMOD-BEGIN 579 // @LOCALMOD-BEGIN
580 initializeExpandByValPass(Registry); 580 initializeExpandByValPass(Registry);
581 initializeExpandConstantExprPass(Registry); 581 initializeExpandConstantExprPass(Registry);
582 initializeExpandCtorsPass(Registry); 582 initializeExpandCtorsPass(Registry);
583 initializeExpandGetElementPtrPass(Registry); 583 initializeExpandGetElementPtrPass(Registry);
584 initializeExpandTlsPass(Registry); 584 initializeExpandTlsPass(Registry);
585 initializeExpandTlsConstantExprPass(Registry); 585 initializeExpandTlsConstantExprPass(Registry);
586 initializeExpandVarArgsPass(Registry); 586 initializeExpandVarArgsPass(Registry);
587 initializeFlattenGlobalsPass(Registry); 587 initializeFlattenGlobalsPass(Registry);
588 initializeGlobalCleanupPass(Registry); 588 initializeGlobalCleanupPass(Registry);
589 initializePNaClABIVerifyFunctionsPass(Registry);
Mark Seaborn 2013/04/25 18:04:32 Why removing from here? This would break when rol
jvoung (off chromium) 2013/04/25 18:09:33 See the comment in Patch Set #1. If I *do* do this
590 initializePNaClABIVerifyModulePass(Registry);
591 initializeResolveAliasesPass(Registry); 589 initializeResolveAliasesPass(Registry);
592 initializeStripMetadataPass(Registry); 590 initializeStripMetadataPass(Registry);
593 // @LOCALMOD-END 591 // @LOCALMOD-END
594 592
595 cl::ParseCommandLineOptions(argc, argv, 593 cl::ParseCommandLineOptions(argc, argv,
596 "llvm .bc -> .bc modular optimizer and analysis printer\n"); 594 "llvm .bc -> .bc modular optimizer and analysis printer\n");
597 595
598 if (AnalyzeOnly && NoOutput) { 596 if (AnalyzeOnly && NoOutput) {
599 errs() << argv[0] << ": analyze mode conflicts with no-output mode.\n"; 597 errs() << argv[0] << ": analyze mode conflicts with no-output mode.\n";
600 return 1; 598 return 1;
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 834
837 // Now that we have all of the passes ready, run them. 835 // Now that we have all of the passes ready, run them.
838 Passes.run(*M.get()); 836 Passes.run(*M.get());
839 837
840 // Declare success. 838 // Declare success.
841 if (!NoOutput || PrintBreakpoints) 839 if (!NoOutput || PrintBreakpoints)
842 Out->keep(); 840 Out->keep();
843 841
844 return 0; 842 return 0;
845 } 843 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698