aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/Driver/HostInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Driver/HostInfo.h b/include/clang/Driver/HostInfo.h
index e83e1d257b..bb5ad7aafc 100644
--- a/include/clang/Driver/HostInfo.h
+++ b/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;