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 | 8ead80db20ec05fd8e613084abfdb8714703fc5f (patch) | |
tree | 64bae97764d81ea1ed1851f5328f0e84151240a3 /lib | |
parent | b137f16936a3f3b5a3463eff6cd433e99ac37cb6 (diff) | |
download | external_llvm-8ead80db20ec05fd8e613084abfdb8714703fc5f.zip external_llvm-8ead80db20ec05fd8e613084abfdb8714703fc5f.tar.gz external_llvm-8ead80db20ec05fd8e613084abfdb8714703fc5f.tar.bz2 |
Set endianess and pointer size for PPC Linux. Bug noticed by Roman Divacky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp b/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp index b6dca83..b6d46dd 100644 --- 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) { + if (is64Bit) + PointerSize = 8; + IsLittleEndian = false; + // ".comm align is in bytes but .align is pow-2." AlignmentIsInBytes = false; |