diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2011-08-01 19:43:05 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2011-08-01 19:43:05 +0000 |
| commit | de4ae46607036e3bd1e8692113c5727dd9e4f884 (patch) | |
| tree | 99f98919cd4c9d1a703e8873007dbae54b23ba27 /llvm/lib | |
| parent | 8b13b59f60237dedd881449ddf25d1958de96c4d (diff) | |
| download | bcm5719-llvm-de4ae46607036e3bd1e8692113c5727dd9e4f884.tar.gz bcm5719-llvm-de4ae46607036e3bd1e8692113c5727dd9e4f884.zip | |
Set endianess and pointer size for PPC Linux. Bug noticed by Roman Divacky.
llvm-svn: 136639
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp index b6dca835b18..b6d46dd34fa 100644 --- a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp +++ b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp @@ -31,6 +31,10 @@ PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit) { } PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) { + if (is64Bit) + PointerSize = 8; + IsLittleEndian = false; + // ".comm align is in bytes but .align is pow-2." AlignmentIsInBytes = false; |

