projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b137f16
)
Set endianess and pointer size for PPC Linux. Bug noticed by Roman Divacky.
author
Evan Cheng
<evan.cheng@apple.com>
Mon, 1 Aug 2011 19:43:05 +0000
(19:43 +0000)
committer
Evan 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
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
b/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
index b6dca835b18d6cf71d705368bc5284e1e9d927cd..b6d46dd34fab6c03f0f3f5a9c6929dba917f5be5 100644
(file)
--- a/
lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
+++ b/
lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
@@
-31,6
+31,10
@@
PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit) {
}
PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) {
}
PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) {
+ if (is64Bit)
+ PointerSize = 8;
+ IsLittleEndian = false;
+
// ".comm align is in bytes but .align is pow-2."
AlignmentIsInBytes = false;
// ".comm align is in bytes but .align is pow-2."
AlignmentIsInBytes = false;