[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCMachOWriter.cpp PPCTargetMachine.cpp PPCTargetMachine.h PPCTargetObjInfo.cpp PPCTargetObjInfo.h
Bill Wendling
isanbard at gmail.com
Wed Jan 17 01:06:40 PST 2007
Changes in directory llvm/lib/Target/PowerPC:
PPCMachOWriter.cpp updated: 1.10 -> 1.11
PPCTargetMachine.cpp updated: 1.113 -> 1.114
PPCTargetMachine.h updated: 1.26 -> 1.27
PPCTargetObjInfo.cpp (r1.1) removed
PPCTargetObjInfo.h (r1.1) removed
---
Log message:
Revert patch.
---
Diffs of the changes: (+18 -24)
PPCMachOWriter.cpp | 36 ++++++++++++++++++------------------
PPCTargetMachine.cpp | 5 -----
PPCTargetMachine.h | 1 -
3 files changed, 18 insertions(+), 24 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCMachOWriter.cpp
diff -u llvm/lib/Target/PowerPC/PPCMachOWriter.cpp:1.10 llvm/lib/Target/PowerPC/PPCMachOWriter.cpp:1.11
--- llvm/lib/Target/PowerPC/PPCMachOWriter.cpp:1.10 Tue Jan 16 21:51:37 2007
+++ llvm/lib/Target/PowerPC/PPCMachOWriter.cpp Wed Jan 17 03:06:13 2007
@@ -2,8 +2,8 @@
//
// The LLVM Compiler Infrastructure
//
-// This file was developed by Nate Begeman and is distributed under the
-// University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file was developed by Nate Begeman and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
@@ -17,7 +17,6 @@
#include "llvm/PassManager.h"
#include "llvm/CodeGen/MachOWriter.h"
#include "llvm/Support/Compiler.h"
-#include "llvm/Target/TargetObjInfo.h"
using namespace llvm;
namespace {
@@ -92,10 +91,10 @@
MachORelocation VANILLA(MR.getMachineCodeOffset(), To.Index, false, 2,
isExtern, PPC_RELOC_VANILLA);
++From.nreloc;
- TOI->outword(From.RelocBuffer, VANILLA.r_address);
- TOI->outword(From.RelocBuffer, VANILLA.getPackedFields());
+ outword(From.RelocBuffer, VANILLA.r_address);
+ outword(From.RelocBuffer, VANILLA.getPackedFields());
}
- TOI->fixword(From.SectionData, Addr, MR.getMachineCodeOffset());
+ fixword(From.SectionData, Addr, MR.getMachineCodeOffset());
break;
case PPC::reloc_pcrel_bx:
Addr -= MR.getMachineCodeOffset();
@@ -103,12 +102,12 @@
Addr &= 0xFFFFFF;
Addr <<= 2;
Addr |= (From.SectionData[MR.getMachineCodeOffset()] << 24);
- TOI->fixword(From.SectionData, Addr, MR.getMachineCodeOffset());
+ fixword(From.SectionData, Addr, MR.getMachineCodeOffset());
break;
case PPC::reloc_pcrel_bcx:
Addr -= MR.getMachineCodeOffset();
Addr &= 0xFFFC;
- TOI->fixhalf(From.SectionData, Addr, MR.getMachineCodeOffset() + 2);
+ fixhalf(From.SectionData, Addr, MR.getMachineCodeOffset() + 2);
break;
case PPC::reloc_absolute_high:
{
@@ -118,14 +117,14 @@
PPC_RELOC_PAIR);
++From.nreloc;
++From.nreloc;
- TOI->outword(From.RelocBuffer, HA16.r_address);
- TOI->outword(From.RelocBuffer, HA16.getPackedFields());
- TOI->outword(From.RelocBuffer, PAIR.r_address);
- TOI->outword(From.RelocBuffer, PAIR.getPackedFields());
+ outword(From.RelocBuffer, HA16.r_address);
+ outword(From.RelocBuffer, HA16.getPackedFields());
+ outword(From.RelocBuffer, PAIR.r_address);
+ outword(From.RelocBuffer, PAIR.getPackedFields());
}
printf("ha16: %x\n", (unsigned)Addr);
Addr += 0x8000;
- TOI->fixhalf(From.SectionData, Addr >> 16, MR.getMachineCodeOffset() + 2);
+ fixhalf(From.SectionData, Addr >> 16, MR.getMachineCodeOffset() + 2);
break;
case PPC::reloc_absolute_low:
{
@@ -135,13 +134,13 @@
PPC_RELOC_PAIR);
++From.nreloc;
++From.nreloc;
- TOI->outword(From.RelocBuffer, LO16.r_address);
- TOI->outword(From.RelocBuffer, LO16.getPackedFields());
- TOI->outword(From.RelocBuffer, PAIR.r_address);
- TOI->outword(From.RelocBuffer, PAIR.getPackedFields());
+ outword(From.RelocBuffer, LO16.r_address);
+ outword(From.RelocBuffer, LO16.getPackedFields());
+ outword(From.RelocBuffer, PAIR.r_address);
+ outword(From.RelocBuffer, PAIR.getPackedFields());
}
printf("lo16: %x\n", (unsigned)Addr);
- TOI->fixhalf(From.SectionData, Addr, MR.getMachineCodeOffset() + 2);
+ fixhalf(From.SectionData, Addr, MR.getMachineCodeOffset() + 2);
break;
}
}
@@ -151,3 +150,4 @@
// FIXME: do something about PIC
return MachineRelocation::getBB(Offset, PPC::reloc_vanilla, MBB);
}
+
Index: llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
diff -u llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:1.113 llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:1.114
--- llvm/lib/Target/PowerPC/PPCTargetMachine.cpp:1.113 Tue Jan 16 21:51:37 2007
+++ llvm/lib/Target/PowerPC/PPCTargetMachine.cpp Wed Jan 17 03:06:13 2007
@@ -13,7 +13,6 @@
#include "PPC.h"
#include "PPCTargetAsmInfo.h"
-#include "PPCTargetObjInfo.h"
#include "PPCTargetMachine.h"
#include "llvm/Module.h"
#include "llvm/PassManager.h"
@@ -35,10 +34,6 @@
return new LinuxTargetAsmInfo(*this);
}
-const TargetObjInfo *PPCTargetMachine::createTargetObjInfo() const {
- return new MachOTargetObjInfo(*this);
-}
-
unsigned PPC32TargetMachine::getJITMatchQuality() {
#if defined(__POWERPC__) || defined (__ppc__) || defined(_POWER)
if (sizeof(void*) == 4)
Index: llvm/lib/Target/PowerPC/PPCTargetMachine.h
diff -u llvm/lib/Target/PowerPC/PPCTargetMachine.h:1.26 llvm/lib/Target/PowerPC/PPCTargetMachine.h:1.27
--- llvm/lib/Target/PowerPC/PPCTargetMachine.h:1.26 Tue Jan 16 21:51:37 2007
+++ llvm/lib/Target/PowerPC/PPCTargetMachine.h Wed Jan 17 03:06:13 2007
@@ -39,7 +39,6 @@
protected:
virtual const TargetAsmInfo *createTargetAsmInfo() const;
- virtual const TargetObjInfo *createTargetObjInfo() const;
public:
PPCTargetMachine(const Module &M, const std::string &FS, bool is64Bit);
More information about the llvm-commits
mailing list