Define double alignment as 8 bytes now that assert(DoubleAlignment == PointerSize)

has been eliminated

llvm-svn: 14891
This commit is contained in:
Misha Brukman 2004-07-16 19:32:12 +00:00
parent 0a92212542
commit 0d35548f37

View File

@ -19,6 +19,7 @@
#include "llvm/CodeGen/Passes.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Target/TargetMachineRegistry.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/Scalar.h"
#include <iostream>
using namespace llvm;
@ -50,11 +51,9 @@ unsigned PowerPCTargetMachine::getModuleMatchQuality(const Module &M) {
/// PowerPCTargetMachine ctor - Create an ILP32 architecture model
///
/// FIXME: Should double alignment be 8 bytes? Then we get a PtrAl != DoubleAl
/// abort
PowerPCTargetMachine::PowerPCTargetMachine(const Module &M,
IntrinsicLowering *IL)
: TargetMachine("PowerPC", IL, false, 4, 4, 4, 4, 4, 4, 4, 4),
: TargetMachine("PowerPC", IL, false, 4, 4, 8, 4, 4, 4, 4, 4),
FrameInfo(TargetFrameInfo::StackGrowsDown, 16, -4), JITInfo(*this) {
}
@ -115,4 +114,3 @@ void PowerPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
PM.add(createRegisterAllocator());
PM.add(createPrologEpilogCodeInserter());
}