diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-12 18:20:49 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-12 18:20:49 +0000 |
commit | 1e2d081e8073934ddc1198b6556c2e2f51c99eec (patch) | |
tree | 57d3dc42798c64c530959350cc8fa2ad7280ac55 | |
parent | bca58cb5100a4fdff63165af6a1742f5160ec73b (diff) |
Driver: Add some HostInfo accessors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66806 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Driver/HostInfo.h | 4 |
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; |