| Bill Wendling | a1b7b8a | 2007-01-24 03:36:05 +0000 | [diff] [blame] | 1 | //===-- llvm/Target/TargetMachOWriterInfo.h - MachO Writer Info -*- C++ -*-===// | 
|  | 2 | // | 
|  | 3 | //                     The LLVM Compiler Infrastructure | 
|  | 4 | // | 
| Chris Lattner | f3ebc3f | 2007-12-29 20:36:04 +0000 | [diff] [blame] | 5 | // This file is distributed under the University of Illinois Open Source | 
|  | 6 | // License. See LICENSE.TXT for details. | 
| Bill Wendling | a1b7b8a | 2007-01-24 03:36:05 +0000 | [diff] [blame] | 7 | // | 
|  | 8 | //===----------------------------------------------------------------------===// | 
|  | 9 | // | 
|  | 10 | // This file defines the TargetMachOWriterInfo class. | 
|  | 11 | // | 
|  | 12 | //===----------------------------------------------------------------------===// | 
|  | 13 |  | 
|  | 14 | #include "llvm/Target/TargetMachOWriterInfo.h" | 
|  | 15 | #include "llvm/CodeGen/MachineRelocation.h" | 
|  | 16 | using namespace llvm; | 
|  | 17 |  | 
| Bill Wendling | c85e32c | 2007-02-03 02:40:10 +0000 | [diff] [blame] | 18 | TargetMachOWriterInfo::~TargetMachOWriterInfo() {} | 
|  | 19 |  | 
| Bill Wendling | a1b7b8a | 2007-01-24 03:36:05 +0000 | [diff] [blame] | 20 | MachineRelocation | 
|  | 21 | TargetMachOWriterInfo::GetJTRelocation(unsigned Offset, | 
|  | 22 | MachineBasicBlock *MBB) const { | 
|  | 23 | // FIXME: do something about PIC | 
|  | 24 | return MachineRelocation::getBB(Offset, MachineRelocation::VANILLA, MBB); | 
|  | 25 | } |