2007-01-24 11:36:05 +08:00
|
|
|
//===-- llvm/Target/TargetMachOWriterInfo.h - MachO Writer Info -*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-30 04:36:04 +08:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-01-24 11:36:05 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file defines the TargetMachOWriterInfo class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/Target/TargetMachOWriterInfo.h"
|
|
|
|
#include "llvm/CodeGen/MachineRelocation.h"
|
|
|
|
using namespace llvm;
|
|
|
|
|
2007-02-03 10:40:10 +08:00
|
|
|
TargetMachOWriterInfo::~TargetMachOWriterInfo() {}
|
|
|
|
|
2007-01-24 11:36:05 +08:00
|
|
|
MachineRelocation
|
|
|
|
TargetMachOWriterInfo::GetJTRelocation(unsigned Offset,
|
|
|
|
MachineBasicBlock *MBB) const {
|
|
|
|
// FIXME: do something about PIC
|
|
|
|
return MachineRelocation::getBB(Offset, MachineRelocation::VANILLA, MBB);
|
|
|
|
}
|