diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2012-01-26 21:56:28 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2012-01-26 21:56:28 +0000 |
commit | 34144f67610be0ac6cb0d85d77bd57662b9232b9 (patch) | |
tree | cea9ba845eb9295754751fb627aad8e6a6f3bc43 /lib/Driver/ToolChain.cpp | |
parent | 8bef8238181a30e52dea380789a7e2d760eac532 (diff) |
Keep track of the original target the user specified before
normalization. This used to be captured in DefaultTargetTriple and is
used for the (optional) $triple-$tool lookup for cross-compilation.
Do this properly by making it an attribute of the toolchain and use it
in combination with the computed triple as index for the toolchain
lookup.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChain.cpp')
-rw-r--r-- | lib/Driver/ToolChain.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Driver/ToolChain.cpp b/lib/Driver/ToolChain.cpp index c0c9c504b6..52038d2327 100644 --- a/lib/Driver/ToolChain.cpp +++ b/lib/Driver/ToolChain.cpp @@ -20,8 +20,9 @@ using namespace clang::driver; using namespace clang; -ToolChain::ToolChain(const Driver &D, const llvm::Triple &T) - : D(D), Triple(T) { +ToolChain::ToolChain(const Driver &D, const llvm::Triple &T, + const std::string &UserTriple) + : D(D), Triple(T), UserTriple(UserTriple) { } ToolChain::~ToolChain() { |