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:
2576f13
)
Double and Long preferred alignment is 4 for Darwin, 8 for Linux.
author
Evan Cheng
<evan.cheng@apple.com>
Mon, 22 Jan 2007 21:24:13 +0000
(21:24 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Mon, 22 Jan 2007 21:24:13 +0000
(21:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33440
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/ARMTargetMachine.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMTargetMachine.cpp
b/lib/Target/ARM/ARMTargetMachine.cpp
index 4ad3cab599882def45644d3d6ae2c226425aba61..492603fe7f069a7b0ccced99ea24a1ef9df42e18 100644
(file)
--- a/
lib/Target/ARM/ARMTargetMachine.cpp
+++ b/
lib/Target/ARM/ARMTargetMachine.cpp
@@
-33,7
+33,11
@@
namespace {
/// TargetMachine ctor - Create an ILP32 architecture model
///
ARMTargetMachine::ARMTargetMachine(const Module &M, const std::string &FS)
- : Subtarget(M, FS), DataLayout("e-p:32:32-d:32"), InstrInfo(Subtarget),
+ : Subtarget(M, FS),
+ DataLayout(Subtarget.isTargetDarwin() ?
+ std::string("e-p:32:32-d:32-l:32") :
+ std::string("e-p:32:32-d:64-l:64")),
+ InstrInfo(Subtarget),
FrameInfo(Subtarget) {}
unsigned ARMTargetMachine::getModuleMatchQuality(const Module &M) {