diff options
Diffstat (limited to 'include/clang/Driver/ToolChain.h')
-rw-r--r-- | include/clang/Driver/ToolChain.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/clang/Driver/ToolChain.h b/include/clang/Driver/ToolChain.h index 4f3a3be681..7f033563c9 100644 --- a/include/clang/Driver/ToolChain.h +++ b/include/clang/Driver/ToolChain.h @@ -46,6 +46,9 @@ public: private: const Driver &D; const llvm::Triple Triple; + /// The target triple originally requested by the user + /// before modifications due to -m32 and without normalization. + const std::string UserTriple; /// The list of toolchain specific path prefixes to search for /// files. @@ -56,7 +59,7 @@ private: path_list ProgramPaths; protected: - ToolChain(const Driver &D, const llvm::Triple &T); + ToolChain(const Driver &D, const llvm::Triple &T, const std::string &UT); /// \name Utilities for implementing subclasses. ///@{ @@ -87,6 +90,9 @@ public: std::string getTripleString() const { return Triple.getTriple(); } + const std::string &getUserTriple() const { + return UserTriple; + } path_list &getFilePaths() { return FilePaths; } const path_list &getFilePaths() const { return FilePaths; } |