diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-09-30 02:22:20 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-09-30 02:22:20 +0000 |
commit | cf3d75077522db0da7d4dd2ef3f75c030c0ca0fb (patch) | |
tree | b2551756c1093c8e4396c9c2596eca5f8657fd51 /include/llvm/MC/MachObjectWriter.h | |
parent | 973b31a55125174f29e6cc5b317de17831bab38d (diff) | |
download | external_llvm-cf3d75077522db0da7d4dd2ef3f75c030c0ca0fb.tar.gz external_llvm-cf3d75077522db0da7d4dd2ef3f75c030c0ca0fb.tar.bz2 external_llvm-cf3d75077522db0da7d4dd2ef3f75c030c0ca0fb.zip |
Make it possible for the MCObjectWriter to decide if a given fixup is fully
resolved or not. Different object files have different restrictions and
different native assemblers have different idiosyncrasies we want to emulate
for now.
Move the existing MachO logic to the new place and implement an ELF one that
gets fixups to globals right.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115131 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MachObjectWriter.h')
-rw-r--r-- | include/llvm/MC/MachObjectWriter.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/MC/MachObjectWriter.h b/include/llvm/MC/MachObjectWriter.h index 9b1ff1db84..198da8fc17 100644 --- a/include/llvm/MC/MachObjectWriter.h +++ b/include/llvm/MC/MachObjectWriter.h @@ -36,6 +36,11 @@ public: const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue); + virtual bool IsFixupFullyResolved(const MCAssembler &Asm, + const MCValue Target, + bool IsPCRel, + const MCFragment *DF) const; + virtual void WriteObject(const MCAssembler &Asm, const MCAsmLayout &Layout); }; |