diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-01-22 02:04:58 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-01-22 02:04:58 +0000 |
commit | eeff406730f50afd973f005a8d501a19af4785e5 (patch) | |
tree | 88f3f6fcf2a7f11dbf6581a856b7e9dcd8095c08 /lib/Driver/ToolChains.h | |
parent | a6d38494d18e260958e73bfe5e2b3f1dc4160459 (diff) |
Driver/Darwin/ld: Factor out getDarwinArchName, for getting the "Darwin" arch
name being used in an driver invocation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains.h')
-rw-r--r-- | lib/Driver/ToolChains.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Driver/ToolChains.h b/lib/Driver/ToolChains.h index 374ad8c6bb..3ca6ad8897 100644 --- a/lib/Driver/ToolChains.h +++ b/lib/Driver/ToolChains.h @@ -85,6 +85,11 @@ public: Res[2] = DarwinVersion[1]; } + /// getDarwinArchName - Get the "Darwin" arch name for a particular compiler + /// invocation. For example, Darwin treats different ARM variations as + /// distinct architectures. + llvm::StringRef getDarwinArchName(const ArgList &Args) const; + /// getMacosxVersionMin - Get the effective -mmacosx-version-min, which is /// either the -mmacosx-version-min, or the current version if unspecified. void getMacosxVersionMin(const ArgList &Args, unsigned (&Res)[3]) const; |