Thumb add sp, #imm requires the immediate value be multiple of 4. For now,

change preferred alignment of short, byte, bool to 4.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33722 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2007-01-31 22:08:40 +00:00
parent 86eb515359
commit 0fa10515ee

View File

@ -35,8 +35,12 @@ namespace {
ARMTargetMachine::ARMTargetMachine(const Module &M, const std::string &FS) ARMTargetMachine::ARMTargetMachine(const Module &M, const std::string &FS)
: Subtarget(M, FS), : Subtarget(M, FS),
DataLayout(Subtarget.isTargetDarwin() ? DataLayout(Subtarget.isTargetDarwin() ?
std::string("e-p:32:32-d:32:32-l:32:32") : (Subtarget.isThumb() ?
std::string("e-p:32:32-d:32:64-l:32:64")), std::string("e-p:32:32-d:32:32-l:32:32-s:16:32-b:8:32-B:8:32") :
std::string("e-p:32:32-d:32:32-l:32:32")) :
(Subtarget.isThumb() ?
std::string("e-p:32:32-d:32:64-l:32:64-s:16:32-b:8:32-B:8:32") :
std::string("e-p:32:32-d:32:64-l:32:64"))),
InstrInfo(Subtarget), InstrInfo(Subtarget),
FrameInfo(Subtarget) {} FrameInfo(Subtarget) {}