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

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

Issue 1129013004: Use -mc-relax-all flag for sandboxed translator (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===-- pnacl-llc.cpp - PNaCl-specific llc: pexe ---> nexe ---------------===// 1 //===-- pnacl-llc.cpp - PNaCl-specific llc: pexe ---> nexe ---------------===//
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 // pnacl-llc: the core of the PNaCl translator, compiling a pexe into a nexe. 10 // pnacl-llc: the core of the PNaCl translator, compiling a pexe into a nexe.
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 std::string Error; 698 std::string Error;
699 const Target *TheTarget = TargetRegistry::lookupTarget(MArch, TheTriple, 699 const Target *TheTarget = TargetRegistry::lookupTarget(MArch, TheTriple,
700 Error); 700 Error);
701 if (!TheTarget) { 701 if (!TheTarget) {
702 errs() << ProgramName << ": " << Error; 702 errs() << ProgramName << ": " << Error;
703 return 1; 703 return 1;
704 } 704 }
705 705
706 TargetOptions Options = InitTargetOptionsFromCodeGenFlags(); 706 TargetOptions Options = InitTargetOptionsFromCodeGenFlags();
707 Options.DisableIntegratedAS = NoIntegratedAssembler; 707 Options.DisableIntegratedAS = NoIntegratedAssembler;
708 #if defined(__native_client__)
709 Options.MCOptions.MCRelaxAll = true;
Mark Seaborn 2015/05/15 14:03:42 Can you add a comment explaining that this reduces
Petr Hosek 2015/05/15 19:27:39 Done.
710 #endif
708 711
709 if (GenerateSoftFloatCalls) 712 if (GenerateSoftFloatCalls)
710 FloatABIForCalls = FloatABI::Soft; 713 FloatABIForCalls = FloatABI::Soft;
711 714
712 // Package up features to be passed to target/subtarget 715 // Package up features to be passed to target/subtarget
713 std::string FeaturesStr; 716 std::string FeaturesStr;
714 if (MAttrs.size()) { 717 if (MAttrs.size()) {
715 SubtargetFeatures Features; 718 SubtargetFeatures Features;
716 for (unsigned i = 0; i != MAttrs.size(); ++i) 719 for (unsigned i = 0; i != MAttrs.size(); ++i)
717 Features.AddFeature(MAttrs[i]); 720 Features.AddFeature(MAttrs[i]);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 return 0; 772 return 0;
770 } 773 }
771 774
772 int main(int argc, char **argv) { 775 int main(int argc, char **argv) {
773 #if defined(PNACL_BROWSER_TRANSLATOR) 776 #if defined(PNACL_BROWSER_TRANSLATOR)
774 return srpc_main(argc, argv); 777 return srpc_main(argc, argv);
775 #else 778 #else
776 return llc_main(argc, argv); 779 return llc_main(argc, argv);
777 #endif // PNACL_BROWSER_TRANSLATOR 780 #endif // PNACL_BROWSER_TRANSLATOR
778 } 781 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698