aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/ToolChains.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-18 08:14:36 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-18 08:14:36 +0000
commit6b200b2b698b6ac9e310f2225c69c85d28ae4fb0 (patch)
tree32935f441d2c278f6988fa20d1f0f843cce80b87 /lib/Driver/ToolChains.h
parentae54af2fdcf2262e778f551941541913828fde49 (diff)
Lift AddLinkerSearchPaths() into Darwin tool chain.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.h')
-rw-r--r--lib/Driver/ToolChains.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/Driver/ToolChains.h b/lib/Driver/ToolChains.h
index 0e5ce34884..fc32019803 100644
--- a/lib/Driver/ToolChains.h
+++ b/lib/Driver/ToolChains.h
@@ -76,6 +76,9 @@ public:
bool IsIPhone);
~Darwin();
+ /// @name Darwin Specific Toolchain API
+ /// {
+
void getDarwinVersion(unsigned (&Res)[3]) const {
Res[0] = DarwinVersion[0];
Res[1] = DarwinVersion[1];
@@ -96,12 +99,19 @@ public:
return IPhoneOSVersionMin.c_str();
}
- const std::string &getToolChainDir() const {
- return ToolChainDir;
- }
+ /// AddLinkSearchPathArgs - Add the linker search paths to \arg CmdArgs.
+ ///
+ /// \param Args - The input argument list.
+ /// \param CmdArgs [out] - The command argument list to append the paths
+ /// (prefixed by -L) to.
+ void AddLinkSearchPathArgs(const ArgList &Args, ArgStringList &CmdArgs) const;
bool isIPhone() const { return IsIPhone; }
+ /// }
+ /// @name ToolChain Implementation
+ /// {
+
virtual DerivedArgList *TranslateArgs(InputArgList &Args,
const char *BoundArch) const;
@@ -111,6 +121,8 @@ public:
virtual bool IsUnwindTablesDefault() const;
virtual const char *GetDefaultRelocationModel() const;
virtual const char *GetForcedPicModel() const;
+
+ /// }
};
/// Darwin_GCC - Generic Darwin tool chain using gcc.