r242574 - basic: default to MSVC on Windows

Richard Smith richard at metafoo.co.uk
Fri Jul 17 17:01:45 PDT 2015


On Fri, Jul 17, 2015 at 4:59 PM, Hans Wennborg <hans at chromium.org> wrote:

> Sounds good to me. Richard: I suppose this falls under your ownership;
> OK for merging?
>

Yes.

On Fri, Jul 17, 2015 at 4:52 PM, Saleem Abdulrasool
> <compnerd at compnerd.org> wrote:
> > Hi Hans,
> >
> > Would you be so kind as to back port this to the 3.7 branch?  It is a low
> > risk change and enables the use of non-COFF object files with MS ABI on
> > Windows.
> >
> > Thanks!
> >
> > On Friday, July 17, 2015, Saleem Abdulrasool <compnerd at compnerd.org>
> wrote:
> >>
> >> Author: compnerd
> >> Date: Fri Jul 17 16:26:41 2015
> >> New Revision: 242574
> >>
> >> URL: http://llvm.org/viewvc/llvm-project?rev=242574&view=rev
> >> Log:
> >> basic: default to MSVC on Windows
> >>
> >> The "armv7-windows", "i686-windows", and "x86_64-windows" targets should
> >> be
> >> equivalent to the MSVC environment.  This was previously discussed when
> >> the
> >> triples for Windows werw canonicalised.  Im not sure how this was
> >> overlooked.
> >> This fixes the emission of non-COFF formats on Windows.
> >>
> >> Thanks to ki9a for reporting this issue over IRC!
> >>
> >> Modified:
> >>     cfe/trunk/lib/Basic/Targets.cpp
> >>
> >> Modified: cfe/trunk/lib/Basic/Targets.cpp
> >> URL:
> >>
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=242574&r1=242573&r2=242574&view=diff
> >>
> >>
> >>
> ==============================================================================
> >> --- cfe/trunk/lib/Basic/Targets.cpp (original)
> >> +++ cfe/trunk/lib/Basic/Targets.cpp Fri Jul 17 16:26:41 2015
> >> @@ -7084,8 +7084,6 @@ static TargetInfo *AllocateTarget(const
> >>        return new NaClTargetInfo<ARMleTargetInfo>(Triple);
> >>      case llvm::Triple::Win32:
> >>        switch (Triple.getEnvironment()) {
> >> -      default:
> >> -        return new ARMleTargetInfo(Triple);
> >>        case llvm::Triple::Cygnus:
> >>          return new CygwinARMTargetInfo(Triple);
> >>        case llvm::Triple::GNU:
> >> @@ -7093,6 +7091,7 @@ static TargetInfo *AllocateTarget(const
> >>        case llvm::Triple::Itanium:
> >>          return new ItaniumWindowsARMleTargetInfo(Triple);
> >>        case llvm::Triple::MSVC:
> >> +      default: // Assume MSVC for unknown environments
> >>          return new MicrosoftARMleTargetInfo(Triple);
> >>        }
> >>      default:
> >> @@ -7347,14 +7346,13 @@ static TargetInfo *AllocateTarget(const
> >>        return new SolarisTargetInfo<X86_32TargetInfo>(Triple);
> >>      case llvm::Triple::Win32: {
> >>        switch (Triple.getEnvironment()) {
> >> -      default:
> >> -        return new X86_32TargetInfo(Triple);
> >>        case llvm::Triple::Cygnus:
> >>          return new CygwinX86_32TargetInfo(Triple);
> >>        case llvm::Triple::GNU:
> >>          return new MinGWX86_32TargetInfo(Triple);
> >>        case llvm::Triple::Itanium:
> >>        case llvm::Triple::MSVC:
> >> +      default: // Assume MSVC for unknown environments
> >>          return new MicrosoftX86_32TargetInfo(Triple);
> >>        }
> >>      }
> >> @@ -7399,11 +7397,10 @@ static TargetInfo *AllocateTarget(const
> >>        return new SolarisTargetInfo<X86_64TargetInfo>(Triple);
> >>      case llvm::Triple::Win32: {
> >>        switch (Triple.getEnvironment()) {
> >> -      default:
> >> -        return new X86_64TargetInfo(Triple);
> >>        case llvm::Triple::GNU:
> >>          return new MinGWX86_64TargetInfo(Triple);
> >>        case llvm::Triple::MSVC:
> >> +      default: // Assume MSVC for unknown environments
> >>          return new MicrosoftX86_64TargetInfo(Triple);
> >>        }
> >>      }
> >>
> >>
> >> _______________________________________________
> >> cfe-commits mailing list
> >> cfe-commits at cs.uiuc.edu
> >> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
> >
> >
> >
> > --
> > Saleem Abdulrasool
> > compnerd (at) compnerd (dot) org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150717/e3bb496d/attachment.html>


More information about the cfe-commits mailing list