[llvm-commits] [llvm] r136639 - /llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
Evan Cheng
evan.cheng at apple.com
Mon Aug 1 12:43:05 PDT 2011
Author: evancheng
Date: Mon Aug 1 14:43:05 2011
New Revision: 136639
URL: http://llvm.org/viewvc/llvm-project?rev=136639&view=rev
Log:
Set endianess and pointer size for PPC Linux. Bug noticed by Roman Divacky.
Modified:
llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
Modified: llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp?rev=136639&r1=136638&r2=136639&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp Mon Aug 1 14:43:05 2011
@@ -31,6 +31,10 @@
}
PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) {
+ if (is64Bit)
+ PointerSize = 8;
+ IsLittleEndian = false;
+
// ".comm align is in bytes but .align is pow-2."
AlignmentIsInBytes = false;
More information about the llvm-commits
mailing list