]> granicus.if.org Git - clang/commitdiff
Driver: Add some HostInfo accessors.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 12 Mar 2009 18:20:49 +0000 (18:20 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 12 Mar 2009 18:20:49 +0000 (18:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66806 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/HostInfo.h

index e83e1d257b94af8e65538590742d7399971ecae5..bb5ad7aafc9b017e76ff714595fc2b158fe83230 100644 (file)
@@ -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;