[cfe-commits] r164473 - in /cfe/trunk: include/clang/Driver/ToolChain.h lib/Driver/ToolChain.cpp lib/Driver/ToolChains.cpp lib/Driver/ToolChains.h
Rafael Espindola
rafael.espindola at gmail.com
Sat Sep 22 20:05:42 PDT 2012
Author: rafael
Date: Sat Sep 22 22:05:41 2012
New Revision: 164473
URL: http://llvm.org/viewvc/llvm-project?rev=164473&view=rev
Log:
Implement ToolChain::IsUnwindTablesDefault to reduce code duplication a bit.
Modified:
cfe/trunk/include/clang/Driver/ToolChain.h
cfe/trunk/lib/Driver/ToolChain.cpp
cfe/trunk/lib/Driver/ToolChains.cpp
cfe/trunk/lib/Driver/ToolChains.h
Modified: cfe/trunk/include/clang/Driver/ToolChain.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/ToolChain.h?rev=164473&r1=164472&r2=164473&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/ToolChain.h (original)
+++ cfe/trunk/include/clang/Driver/ToolChain.h Sat Sep 22 22:05:41 2012
@@ -166,7 +166,7 @@
/// IsUnwindTablesDefault - Does this tool chain use -funwind-tables
/// by default.
- virtual bool IsUnwindTablesDefault() const = 0;
+ virtual bool IsUnwindTablesDefault() const;
/// GetDefaultRelocationModel - Return the LLVM name of the default
/// relocation model for this tool chain.
Modified: cfe/trunk/lib/Driver/ToolChain.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChain.cpp?rev=164473&r1=164472&r2=164473&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChain.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChain.cpp Sat Sep 22 22:05:41 2012
@@ -32,6 +32,10 @@
return D;
}
+bool ToolChain::IsUnwindTablesDefault() const {
+ return false;
+}
+
std::string ToolChain::GetFilePath(const char *Name) const {
return D.GetFilePath(Name, *this);
Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=164473&r1=164472&r2=164473&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Sat Sep 22 22:05:41 2012
@@ -1479,10 +1479,6 @@
return *T;
}
-bool Hexagon_TC::IsUnwindTablesDefault() const {
- return false;
-}
-
const char *Hexagon_TC::GetDefaultRelocationModel() const {
return "static";
}
@@ -1515,10 +1511,6 @@
return true;
}
-bool TCEToolChain::IsUnwindTablesDefault() const {
- return false;
-}
-
const char *TCEToolChain::GetDefaultRelocationModel() const {
return "static";
}
Modified: cfe/trunk/lib/Driver/ToolChains.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.h?rev=164473&r1=164472&r2=164473&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.h (original)
+++ cfe/trunk/lib/Driver/ToolChains.h Sat Sep 22 22:05:41 2012
@@ -155,7 +155,6 @@
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 @@
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;
More information about the cfe-commits
mailing list