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

Side by Side Diff: lib/Driver/ToolChains.h

Issue 838933004: Inject gnueabihf environment into the effective clang triple for NaCl (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-clang.git@master
Patch Set: review Created 5 years, 11 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 | lib/Driver/ToolChains.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===--- ToolChains.h - ToolChain Implementations ---------------*- C++ -*-===// 1 //===--- ToolChains.h - ToolChain Implementations ---------------*- C++ -*-===//
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 #ifndef CLANG_LIB_DRIVER_TOOLCHAINS_H_ 10 #ifndef CLANG_LIB_DRIVER_TOOLCHAINS_H_
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args, 734 AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args,
735 llvm::opt::ArgStringList &CmdArgs) const override; 735 llvm::opt::ArgStringList &CmdArgs) const override;
736 736
737 bool 737 bool
738 IsIntegratedAssemblerDefault() const override { return false; } 738 IsIntegratedAssemblerDefault() const override { return false; }
739 739
740 // Get the path to the file containing NaCl's ARM macros. It lives in NaCl_TC 740 // Get the path to the file containing NaCl's ARM macros. It lives in NaCl_TC
741 // because the AssembleARM tool needs a const char * that it can pass around 741 // because the AssembleARM tool needs a const char * that it can pass around
742 // and the toolchain outlives all the jobs. 742 // and the toolchain outlives all the jobs.
743 const char *GetNaClArmMacrosPath() const { return NaClArmMacrosPath.c_str(); } 743 const char *GetNaClArmMacrosPath() const { return NaClArmMacrosPath.c_str(); }
744
745 std::string ComputeEffectiveClangTriple(const llvm::opt::ArgList &Args,
746 types::ID InputType) const override;
744 std::string Linker; 747 std::string Linker;
745 748
746 protected: 749 protected:
747 Tool *buildLinker() const override; 750 Tool *buildLinker() const override;
748 Tool *buildAssembler() const override; 751 Tool *buildAssembler() const override;
749 752
750 private: 753 private:
751 std::string NaClArmMacrosPath; 754 std::string NaClArmMacrosPath;
752 }; 755 };
753 // @LOCALMOD-END 756 // @LOCALMOD-END
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 llvm::opt::ArgStringList &CC1Args) const override; 815 llvm::opt::ArgStringList &CC1Args) const override;
813 void AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args, 816 void AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args,
814 llvm::opt::ArgStringList &CmdArgs) const override; 817 llvm::opt::ArgStringList &CmdArgs) const override;
815 }; 818 };
816 819
817 } // end namespace toolchains 820 } // end namespace toolchains
818 } // end namespace driver 821 } // end namespace driver
819 } // end namespace clang 822 } // end namespace clang
820 823
821 #endif 824 #endif
OLDNEW
« no previous file with comments | « no previous file | lib/Driver/ToolChains.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698