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

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

Issue 8437024: Bitcode parsing modifications for streaming (Closed)
Patch Set: Created 9 years, 1 month 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 //===-- llc.cpp - Implement the LLVM Native Code Generator ----------------===// 1 //===-- llc.cpp - Implement the LLVM Native Code Generator ----------------===//
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 // This is the llc code generator driver. It provides a convenient 10 // This is the llc code generator driver. It provides a convenient
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 return 1; 540 return 1;
541 } 541 }
542 542
543 // Before executing passes, print the final values of the LLVM options. 543 // Before executing passes, print the final values of the LLVM options.
544 cl::PrintOptionValues(); 544 cl::PrintOptionValues();
545 545
546 if (LazyBitcode) { 546 if (LazyBitcode) {
547 FunctionPassManager* P = static_cast<FunctionPassManager*>(PM); 547 FunctionPassManager* P = static_cast<FunctionPassManager*>(PM);
548 P->doInitialization(); 548 P->doInitialization();
549 for (Module::iterator I = mod.begin(), E = mod.end(); I != E; ++I) { 549 for (Module::iterator I = mod.begin(), E = mod.end(); I != E; ++I) {
550 fprintf(stderr, "running %s\n", I->getName().str().c_str()); 550 fprintf(stderr, "compiling %p (%s)\n", &(*I), I->getName().str().c_str() );
551 P->run(*I); 551 P->run(*I);
552 } 552 }
553 P->doFinalization(); 553 P->doFinalization();
554 } else { 554 } else {
555 static_cast<PassManager*>(PM)->run(mod); 555 static_cast<PassManager*>(PM)->run(mod);
556 } 556 }
557 } 557 }
558 558
559 // Declare success. 559 // Declare success.
560 Out->keep(); 560 Out->keep();
561 #endif 561 #endif
562 562
563 return 0; 563 return 0;
564 } 564 }
565 565
566 #if !defined(NACL_SRPC) 566 #if !defined(NACL_SRPC)
567 int 567 int
568 main (int argc, char **argv) { 568 main (int argc, char **argv) {
569 return llc_main(argc, argv); 569 return llc_main(argc, argv);
570 } 570 }
571 #else 571 #else
572 // main() is in nacl_file.cpp. 572 // main() is in nacl_file.cpp.
573 #endif 573 #endif
OLDNEW
« lib/Bitcode/Writer/BitcodeWriter.cpp ('K') | « lib/Bitcode/Writer/BitcodeWriter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698