diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-09-23 03:05:41 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-09-23 03:05:41 +0000 |
commit | 03a86385d6628398e1671db1d1970eb83ef0f8b3 (patch) | |
tree | c799c71299898d05d5a67593bee6169647a77e4e /lib | |
parent | 76f74ad696abe882e4ee6466913f554580ec5a59 (diff) |
Implement ToolChain::IsUnwindTablesDefault to reduce code duplication a bit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Driver/ToolChain.cpp | 4 | ||||
-rw-r--r-- | lib/Driver/ToolChains.cpp | 8 | ||||
-rw-r--r-- | lib/Driver/ToolChains.h | 2 |
3 files changed, 4 insertions, 10 deletions
diff --git a/lib/Driver/ToolChain.cpp b/lib/Driver/ToolChain.cpp index df09c20c18..913c5e00f5 100644 --- a/lib/Driver/ToolChain.cpp +++ b/lib/Driver/ToolChain.cpp @@ -32,6 +32,10 @@ const Driver &ToolChain::getDriver() const { return D; } +bool ToolChain::IsUnwindTablesDefault() const { + return false; +} + std::string ToolChain::GetFilePath(const char *Name) const { return D.GetFilePath(Name, *this); diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 1276915c70..7e19551cd8 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -1479,10 +1479,6 @@ Tool &Hexagon_TC::SelectTool(const Compilation &C, return *T; } -bool Hexagon_TC::IsUnwindTablesDefault() const { - return false; -} - const char *Hexagon_TC::GetDefaultRelocationModel() const { return "static"; } @@ -1515,10 +1511,6 @@ bool TCEToolChain::IsMathErrnoDefault() const { return true; } -bool TCEToolChain::IsUnwindTablesDefault() const { - return false; -} - const char *TCEToolChain::GetDefaultRelocationModel() const { return "static"; } diff --git a/lib/Driver/ToolChains.h b/lib/Driver/ToolChains.h index 752cdfdcaa..c3c874aa50 100644 --- a/lib/Driver/ToolChains.h +++ b/lib/Driver/ToolChains.h @@ -155,7 +155,6 @@ public: virtual Tool &SelectTool(const Compilation &C, const JobAction &JA, const ActionList &Inputs) const; - virtual bool IsUnwindTablesDefault() const; virtual const char *GetDefaultRelocationModel() const; virtual const char *GetForcedPicModel() const; }; @@ -540,7 +539,6 @@ public: virtual Tool &SelectTool(const Compilation &C, const JobAction &JA, const ActionList &Inputs) const; bool IsMathErrnoDefault() const; - bool IsUnwindTablesDefault() const; const char* GetDefaultRelocationModel() const; const char* GetForcedPicModel() const; |