summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Driver/HostInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/include/clang/Driver/HostInfo.h b/clang/include/clang/Driver/HostInfo.h
index e83e1d257b9..bb5ad7aafc9 100644
--- a/clang/include/clang/Driver/HostInfo.h
+++ b/clang/include/clang/Driver/HostInfo.h
@@ -33,6 +33,10 @@ protected:
public:
virtual ~HostInfo();
+ const std::string &getArchName() const { return Arch; }
+ const std::string &getPlatformName() const { return Platform; }
+ const std::string &getOSName() const { return OS; }
+
/// useDriverDriver - Whether the driver should act as a driver
/// driver for this host and support -arch, -Xarch, etc.
virtual bool useDriverDriver() const = 0;
OpenPOWER on IntegriCloud