diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-05-22 02:53:45 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-05-22 02:53:45 +0000 |
commit | cb8ab23f7c800b041aeb6fc38c341d1aa0da86bf (patch) | |
tree | 45914778234d72e4e73e18a1461257b4c918d401 /lib/Driver/ToolChains.h | |
parent | 7cfe31a713d8fcfc2a1328e8fbd8efdeb0aec51b (diff) |
(llvm up) Use llvm::Triple for storing target triples.
- This commit has some messy stuff in it to extend string lifetimes, but that
will go away once we switch to using the enum'd Triple interfaces.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72243 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.h')
-rw-r--r-- | lib/Driver/ToolChains.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/Driver/ToolChains.h b/lib/Driver/ToolChains.h index baab99bc5c..5a5c13bf2e 100644 --- a/lib/Driver/ToolChains.h +++ b/lib/Driver/ToolChains.h @@ -30,8 +30,7 @@ protected: mutable llvm::DenseMap<unsigned, Tool*> Tools; public: - Generic_GCC(const HostInfo &Host, const char *Arch, const char *Platform, - const char *OS); + Generic_GCC(const HostInfo &Host, const llvm::Triple& Triple); ~Generic_GCC(); virtual DerivedArgList *TranslateArgs(InputArgList &Args) const; @@ -64,8 +63,8 @@ class VISIBILITY_HIDDEN Darwin_X86 : public ToolChain { const char *getMacosxVersionMin() const; public: - Darwin_X86(const HostInfo &Host, const char *Arch, const char *Platform, - const char *OS, const unsigned (&DarwinVersion)[3], + Darwin_X86(const HostInfo &Host, const llvm::Triple& Triple, + const unsigned (&DarwinVersion)[3], const unsigned (&GCCVersion)[3]); ~Darwin_X86(); @@ -102,24 +101,22 @@ public: /// Darwin_GCC - Generic Darwin tool chain using gcc. class VISIBILITY_HIDDEN Darwin_GCC : public Generic_GCC { public: - Darwin_GCC(const HostInfo &Host, const char *Arch, const char *Platform, - const char *OS) : Generic_GCC(Host, Arch, Platform, OS) {} + Darwin_GCC(const HostInfo &Host, const llvm::Triple& Triple) + : Generic_GCC(Host, Triple) {} virtual const char *GetDefaultRelocationModel() const { return "pic"; } }; class VISIBILITY_HIDDEN FreeBSD : public Generic_GCC { public: - FreeBSD(const HostInfo &Host, const char *Arch, const char *Platform, - const char *OS, bool Lib32); + FreeBSD(const HostInfo &Host, const llvm::Triple& Triple, bool Lib32); virtual Tool &SelectTool(const Compilation &C, const JobAction &JA) const; }; class VISIBILITY_HIDDEN DragonFly : public Generic_GCC { public: - DragonFly(const HostInfo &Host, const char *Arch, const char *Platform, - const char *OS); + DragonFly(const HostInfo &Host, const llvm::Triple& Triple); virtual Tool &SelectTool(const Compilation &C, const JobAction &JA) const; }; |