mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 06:39:12 +00:00
Split out the x86_32 an x86_64 ELF backends as they handle ELF
differently. This will make adding ELF support easier in the long run. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104317 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
924c5e58f2
commit
7efaef6b82
@ -212,6 +212,18 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class ELFX86_32AsmBackend : public ELFX86AsmBackend {
|
||||
public:
|
||||
ELFX86_32AsmBackend(const Target &T)
|
||||
: ELFX86AsmBackend(T) {}
|
||||
};
|
||||
|
||||
class ELFX86_64AsmBackend : public ELFX86AsmBackend {
|
||||
public:
|
||||
ELFX86_64AsmBackend(const Target &T)
|
||||
: ELFX86AsmBackend(T) {}
|
||||
};
|
||||
|
||||
class DarwinX86AsmBackend : public X86AsmBackend {
|
||||
public:
|
||||
DarwinX86AsmBackend(const Target &T)
|
||||
@ -291,7 +303,7 @@ TargetAsmBackend *llvm::createX86_32AsmBackend(const Target &T,
|
||||
case Triple::Darwin:
|
||||
return new DarwinX86_32AsmBackend(T);
|
||||
default:
|
||||
return new ELFX86AsmBackend(T);
|
||||
return new ELFX86_32AsmBackend(T);
|
||||
}
|
||||
}
|
||||
|
||||
@ -301,6 +313,6 @@ TargetAsmBackend *llvm::createX86_64AsmBackend(const Target &T,
|
||||
case Triple::Darwin:
|
||||
return new DarwinX86_64AsmBackend(T);
|
||||
default:
|
||||
return new ELFX86AsmBackend(T);
|
||||
return new ELFX86_64AsmBackend(T);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user