mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
Fix the pointer size for the PS3 datalayout.
This will be tested from clang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197501 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fcd2633a26
commit
ce6d31427f
@ -35,11 +35,14 @@ extern "C" void LLVMInitializePowerPCTarget() {
|
|||||||
|
|
||||||
/// Return the datalayout string of a subtarget.
|
/// Return the datalayout string of a subtarget.
|
||||||
static std::string getDataLayoutString(const PPCSubtarget &ST) {
|
static std::string getDataLayoutString(const PPCSubtarget &ST) {
|
||||||
|
const Triple &T = ST.getTargetTriple();
|
||||||
|
|
||||||
// PPC is big endian.
|
// PPC is big endian.
|
||||||
std::string Ret = "E";
|
std::string Ret = "E";
|
||||||
|
|
||||||
// PPC32 has 32 bit pointers.
|
// PPC32 has 32 bit pointers. The PS3 (OS Lv2) is a PPC64 machine with 32 bit
|
||||||
if (!ST.isPPC64())
|
// pointers.
|
||||||
|
if (!ST.isPPC64() || T.getOS() == Triple::Lv2)
|
||||||
Ret += "-p:32:32";
|
Ret += "-p:32:32";
|
||||||
|
|
||||||
// Note, the alignment values for f64 and i64 on ppc64 in Darwin
|
// Note, the alignment values for f64 and i64 on ppc64 in Darwin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user