forked from OSchip/llvm-project
Use switch(os) style consistently. Add a bunch of NetBSD branches.
llvm-svn: 134393
This commit is contained in:
parent
e72d9b1f85
commit
025949c366
|
@ -2817,6 +2817,8 @@ static TargetInfo *AllocateTarget(const std::string &T) {
|
|||
return new LinuxTargetInfo<ARMTargetInfo>(T);
|
||||
case llvm::Triple::FreeBSD:
|
||||
return new FreeBSDTargetInfo<ARMTargetInfo>(T);
|
||||
case llvm::Triple::NetBSD:
|
||||
return new NetBSDTargetInfo<ARMTargetInfo>(T);
|
||||
case llvm::Triple::RTEMS:
|
||||
return new RTEMSTargetInfo<ARMTargetInfo>(T);
|
||||
default:
|
||||
|
@ -2852,20 +2854,30 @@ static TargetInfo *AllocateTarget(const std::string &T) {
|
|||
case llvm::Triple::ppc:
|
||||
if (Triple.isOSDarwin())
|
||||
return new DarwinPPC32TargetInfo(T);
|
||||
else if (os == llvm::Triple::FreeBSD)
|
||||
switch (os) {
|
||||
case llvm::Triple::FreeBSD:
|
||||
return new FreeBSDTargetInfo<PPC32TargetInfo>(T);
|
||||
if ( os == llvm::Triple::RTEMS )
|
||||
case llvm::Triple::NetBSD:
|
||||
return new NetBSDTargetInfo<PPC32TargetInfo>(T);
|
||||
case llvm::Triple::RTEMS:
|
||||
return new RTEMSTargetInfo<PPC32TargetInfo>(T);
|
||||
return new PPC32TargetInfo(T);
|
||||
default:
|
||||
return new PPC32TargetInfo(T);
|
||||
}
|
||||
|
||||
case llvm::Triple::ppc64:
|
||||
if (Triple.isOSDarwin())
|
||||
return new DarwinPPC64TargetInfo(T);
|
||||
else if (os == llvm::Triple::Lv2)
|
||||
switch (os) {
|
||||
case llvm::Triple::Lv2:
|
||||
return new PS3PPUTargetInfo<PPC64TargetInfo>(T);
|
||||
else if (os == llvm::Triple::FreeBSD)
|
||||
case llvm::Triple::FreeBSD:
|
||||
return new FreeBSDTargetInfo<PPC64TargetInfo>(T);
|
||||
return new PPC64TargetInfo(T);
|
||||
case llvm::Triple::NetBSD:
|
||||
return new NetBSDTargetInfo<PPC64TargetInfo>(T);
|
||||
default:
|
||||
return new PPC64TargetInfo(T);
|
||||
}
|
||||
|
||||
case llvm::Triple::ptx32:
|
||||
return new PTX32TargetInfo(T);
|
||||
|
@ -2876,13 +2888,18 @@ static TargetInfo *AllocateTarget(const std::string &T) {
|
|||
return new MBlazeTargetInfo(T);
|
||||
|
||||
case llvm::Triple::sparc:
|
||||
if (os == llvm::Triple::AuroraUX)
|
||||
switch (os) {
|
||||
case llvm::Triple::AuroraUX:
|
||||
return new AuroraUXSparcV8TargetInfo(T);
|
||||
if (os == llvm::Triple::Solaris)
|
||||
case llvm::Triple::Solaris:
|
||||
return new SolarisSparcV8TargetInfo(T);
|
||||
if ( os == llvm::Triple::RTEMS )
|
||||
case llvm::Triple::NetBSD:
|
||||
return new NetBSDTargetInfo<SparcV8TargetInfo>(T);
|
||||
case llvm::Triple::RTEMS:
|
||||
return new RTEMSTargetInfo<SparcV8TargetInfo>(T);
|
||||
return new SparcV8TargetInfo(T);
|
||||
default:
|
||||
return new SparcV8TargetInfo(T);
|
||||
}
|
||||
|
||||
// FIXME: Need a real SPU target.
|
||||
case llvm::Triple::cellspu:
|
||||
|
|
Loading…
Reference in New Issue