forked from OSchip/llvm-project
Add target info for Linux on PPC & Sparc.
Patch by Hal Finkel! llvm-svn: 141772
This commit is contained in:
parent
7f6b029c4e
commit
804dd056b3
|
@ -3582,6 +3582,8 @@ static TargetInfo *AllocateTarget(const std::string &T) {
|
|||
if (Triple.isOSDarwin())
|
||||
return new DarwinPPC32TargetInfo(T);
|
||||
switch (os) {
|
||||
case llvm::Triple::Linux:
|
||||
return new LinuxTargetInfo<PPC32TargetInfo>(T);
|
||||
case llvm::Triple::FreeBSD:
|
||||
return new FreeBSDTargetInfo<PPC32TargetInfo>(T);
|
||||
case llvm::Triple::NetBSD:
|
||||
|
@ -3596,6 +3598,8 @@ static TargetInfo *AllocateTarget(const std::string &T) {
|
|||
if (Triple.isOSDarwin())
|
||||
return new DarwinPPC64TargetInfo(T);
|
||||
switch (os) {
|
||||
case llvm::Triple::Linux:
|
||||
return new LinuxTargetInfo<PPC64TargetInfo>(T);
|
||||
case llvm::Triple::Lv2:
|
||||
return new PS3PPUTargetInfo<PPC64TargetInfo>(T);
|
||||
case llvm::Triple::FreeBSD:
|
||||
|
@ -3616,6 +3620,8 @@ static TargetInfo *AllocateTarget(const std::string &T) {
|
|||
|
||||
case llvm::Triple::sparc:
|
||||
switch (os) {
|
||||
case llvm::Triple::Linux:
|
||||
return new LinuxTargetInfo<SparcV8TargetInfo>(T);
|
||||
case llvm::Triple::AuroraUX:
|
||||
return new AuroraUXSparcV8TargetInfo(T);
|
||||
case llvm::Triple::Solaris:
|
||||
|
|
Loading…
Reference in New Issue