diff options
author | Bill Wendling <isanbard@gmail.com> | 2007-01-24 03:36:05 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2007-01-24 03:36:05 +0000 |
commit | 841056a2ad6fce7786378a27aced46e37122259f (patch) | |
tree | 97b6ff579f0ff6c2dabf68c1a35dcaa42ae544bd /lib/Target/TargetMachOWriterInfo.cpp | |
parent | e966d6415ce3a9a6ef113ea4382131f46eb55540 (diff) |
New "TargetMachOWriterInfo" class. It holds target-specific information
that the MachOWriter needs in order to do its writing stuff 'n things.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetMachOWriterInfo.cpp')
-rw-r--r-- | lib/Target/TargetMachOWriterInfo.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/Target/TargetMachOWriterInfo.cpp b/lib/Target/TargetMachOWriterInfo.cpp new file mode 100644 index 0000000000..3cf297499c --- /dev/null +++ b/lib/Target/TargetMachOWriterInfo.cpp @@ -0,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); +} |