Skip to content

Commit

Permalink
Corrected data layout to keep things 4 byte aligned.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbonn committed Jun 22, 2011
1 parent 1caf353 commit 093bdb2
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lib/Target/Mico32/Mico32TargetMachine.cpp
Expand Up @@ -86,21 +86,12 @@ extern "C" void LLVMInitializeMico32Target() {
/// Note: DataLayout is described in:
/// http://www.llvm.org/docs/LangRef.html#datalayout
///
// From MBlaze:
// DataLayout --> Big-endian, 32-bit pointer/ABI/alignment
// The stack is always 8 byte aligned
// On function prologue, the stack is created by decrementing
// its pointer. Once decremented, all references are done with positive
// offset from the stack/frame pointer, using StackGrowsUp enables
// an easier handling.
// FIXME: I don't like switching the meaning of StackGrowsUp, this
// is bound to cause problems.
Mico32TargetMachine::Mico32TargetMachine(const Target &T,
const std::string &TT,
const std::string &FS)
: LLVMTargetMachine(T, TT),
Subtarget(TT, FS),
DataLayout("E-p:32:32:32-i8:8:8-i16:16:16"),
DataLayout("E-p:32:32:32-i8:8:32-i16:16:32"),
InstrInfo(*this),
FrameLowering(Subtarget),
TLInfo(*this), TSInfo(*this)
Expand Down

0 comments on commit 093bdb2

Please sign in to comment.