[cfe-commits] r66806 - /cfe/trunk/include/clang/Driver/HostInfo.h

Daniel Dunbar daniel at zuster.org
Thu Mar 12 11:20:49 PDT 2009


Author: ddunbar
Date: Thu Mar 12 13:20:49 2009
New Revision: 66806

URL: http://llvm.org/viewvc/llvm-project?rev=66806&view=rev
Log:
Driver: Add some HostInfo accessors.

Modified:
    cfe/trunk/include/clang/Driver/HostInfo.h

Modified: cfe/trunk/include/clang/Driver/HostInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/HostInfo.h?rev=66806&r1=66805&r2=66806&view=diff

==============================================================================
--- cfe/trunk/include/clang/Driver/HostInfo.h (original)
+++ cfe/trunk/include/clang/Driver/HostInfo.h Thu Mar 12 13:20:49 2009
@@ -33,6 +33,10 @@
 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;





More information about the cfe-commits mailing list