00001 //===-- basic/TargetInfo.h ------------------------------------ -*- C++ -*-===// 00002 // 00003 // This file is distributed under the MIT license. See LICENSE.txt for details. 00004 // 00005 // Copyright (C) 2009, Stephen Wilson 00006 // 00007 //===----------------------------------------------------------------------===// 00008 // 00009 // The TargetInfo class provides a high level description of the machine we are 00010 // compiling for. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef COMMA_BASIC_TARGETINFO_HDR_GUARD 00015 #define COMMA_BASIC_TARGETINFO_HDR_GUARD 00016 00017 namespace comma { 00018 00019 class TargetInfo { 00020 00021 public: 00027 TargetInfo(const std::string &triple); 00028 00030 const std::string &getTargetTriple(); 00031 00032 private: 00033 std::string triple; 00034 }; 00035 00036 } // end comma namespace. 00037 00038 #endif