Set endianess and pointer size for PPC Linux. Bug noticed by Roman Divacky.
authorEvan Cheng <evan.cheng@apple.com>
Mon, 1 Aug 2011 19:43:05 +0000 (19:43 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 1 Aug 2011 19:43:05 +0000 (19:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136639 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp

index b6dca835b18d6cf71d705368bc5284e1e9d927cd..b6d46dd34fab6c03f0f3f5a9c6929dba917f5be5 100644 (file)
@@ -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;