Bool alignment on MacOSX/PowerPC is 4 bytes.
[oota-llvm.git] / lib / Target / PowerPC / PPCTargetMachine.cpp
index 25c7fc0959e205810369bc07089d0cebe1ba0de4..0ca5769040cd77290c9b10563d637cd97a5bff1b 100644 (file)
@@ -50,11 +50,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, 4, 4, 4, 4, 2, 1, 4),
     FrameInfo(TargetFrameInfo::StackGrowsDown, 16, -4), JITInfo(*this) {
 }
 
@@ -62,7 +60,7 @@ PowerPCTargetMachine::PowerPCTargetMachine(const Module &M,
 /// to implement a static compiler for this target.
 ///
 bool PowerPCTargetMachine::addPassesToEmitAssembly(PassManager &PM,
-                                              std::ostream &Out) {
+                                                   std::ostream &Out) {
   // FIXME: Implement efficient support for garbage collection intrinsics.
   PM.add(createLowerGCPass());
 
@@ -115,4 +113,3 @@ void PowerPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
   PM.add(createRegisterAllocator());
   PM.add(createPrologEpilogCodeInserter());
 }
-