From: Daniel Dunbar Date: Thu, 12 Mar 2009 18:20:49 +0000 (+0000) Subject: Driver: Add some HostInfo accessors. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e2d081e8073934ddc1198b6556c2e2f51c99eec;p=clang Driver: Add some HostInfo accessors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66806 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;