From d5f7d2509b5276fee224729b3f6554dbce34a97d Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 12 Mar 2009 18:20:49 +0000 Subject: [PATCH] Driver: Add some HostInfo accessors. llvm-svn: 66806 --- clang/include/clang/Driver/HostInfo.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clang/include/clang/Driver/HostInfo.h b/clang/include/clang/Driver/HostInfo.h index e83e1d257b94..bb5ad7aafc9b 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;