[llvm-commits] [PATCH 1/4][llvm] Introduce Triple::MinGW.

Duncan Sands baldrick at free.fr
Tue Feb 15 02:01:01 PST 2011


Hi,

> @@ -84,8 +84,10 @@ public:
>      FreeBSD,
>      Linux,
>      Lv2,        // PS3
> -    MinGW32,
> +    MinGW,      // i*86-pc-mingw32, *-w64-mingw32
> +#define MinGW32 MinGW
>      MinGW64,
> +    // FIXME: They will be removed soon.

why not remove them at once?

> @@ -316,10 +316,8 @@ Triple::OSType Triple::ParseOS(StringRef OSName) {
>      return Linux;
>    else if (OSName.startswith("lv2"))
>      return Lv2;
> -  else if (OSName.startswith("mingw32"))
> -    return MinGW32;
> -  else if (OSName.startswith("mingw64"))
> -    return MinGW64;
> +  else if (OSName.startswith("mingw"))
> +    return MinGW;

here you will accept mingw, ming32 and mingw64 while gcc only accepts
mingw32.  I'm not saying that this is wrong, but maybe it is unwise.

Ciao, Duncan.



More information about the llvm-commits mailing list