X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FADT%2FTriple.h;h=b260f984948ed63b1d603db78e202c37defb3d86;hb=7eaf057e54e9b5f0469057c71d81dcfee90d9e12;hp=f146c0f37ffe3b6131d9745be58af796cff9a622;hpb=23e97b05da7b31ed97e5ccc6330670da0173ca2e;p=oota-llvm.git diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index f146c0f37ff..b260f984948 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -50,6 +50,7 @@ public: UnknownOS, Darwin, + DragonFly, FreeBSD, Linux }; @@ -75,6 +76,13 @@ public: Triple() : Data(""), Arch(InvalidArch) {} explicit Triple(const char *Str) : Data(Str), Arch(InvalidArch) {} + explicit Triple(const char *ArchStr, const char *VendorStr, const char *OSStr) + : Data(ArchStr), Arch(InvalidArch) { + Data += '-'; + Data += VendorStr; + Data += '-'; + Data += OSStr; + } /// @} /// @name Typed Component Access