summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-08-01 19:43:05 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-08-01 19:43:05 +0000
commitde4ae46607036e3bd1e8692113c5727dd9e4f884 (patch)
tree99f98919cd4c9d1a703e8873007dbae54b23ba27 /llvm/lib
parent8b13b59f60237dedd881449ddf25d1958de96c4d (diff)
downloadbcm5719-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.cpp4
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;
OpenPOWER on IntegriCloud