Changes in directory llvm/lib/Target:
TargetMachOWriterInfo.cpp added (r1.1) --- Log message: New "TargetMachOWriterInfo" class. It holds target-specific information that the MachOWriter needs in order to do its writing stuff 'n things. --- Diffs of the changes: (+23 -0) TargetMachOWriterInfo.cpp | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+) Index: llvm/lib/Target/TargetMachOWriterInfo.cpp diff -c /dev/null llvm/lib/Target/TargetMachOWriterInfo.cpp:1.1 *** /dev/null Tue Jan 23 21:36:15 2007 --- llvm/lib/Target/TargetMachOWriterInfo.cpp Tue Jan 23 21:36:05 2007 *************** *** 0 **** --- 1,23 ---- + //===-- llvm/Target/TargetMachOWriterInfo.h - MachO Writer Info -*- C++ -*-===// + // + // The LLVM Compiler Infrastructure + // + // This file was developed by Bill Wendling and is distributed under the + // University of Illinois Open Source License. See LICENSE.TXT for details. + // + //===----------------------------------------------------------------------===// + // + // This file defines the TargetMachOWriterInfo class. + // + //===----------------------------------------------------------------------===// + + #include "llvm/Target/TargetMachOWriterInfo.h" + #include "llvm/CodeGen/MachineRelocation.h" + using namespace llvm; + + MachineRelocation + TargetMachOWriterInfo::GetJTRelocation(unsigned Offset, + MachineBasicBlock *MBB) const { + // FIXME: do something about PIC + return MachineRelocation::getBB(Offset, MachineRelocation::VANILLA, MBB); + } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits