summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCObjectWriter.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-24 03:43:40 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-24 03:43:40 +0000
commit207e06ea0446c51cb1d89f6400ec7becc46487f8 (patch)
tree7cbe12687a4f117def1297781e615368454c7a9e /include/llvm/MC/MCObjectWriter.h
parent2250425d6e44558f9d333a5c7faef33744f561d6 (diff)
downloadllvm-207e06ea0446c51cb1d89f6400ec7becc46487f8.tar.gz
llvm-207e06ea0446c51cb1d89f6400ec7becc46487f8.tar.bz2
llvm-207e06ea0446c51cb1d89f6400ec7becc46487f8.tar.xz
MC: Direct all {fragment,section,symbol} address access through the MCAsmLayout object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCObjectWriter.h')
-rw-r--r--include/llvm/MC/MCObjectWriter.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/MC/MCObjectWriter.h b/include/llvm/MC/MCObjectWriter.h
index 0316f51049..f70a3d1851 100644
--- a/include/llvm/MC/MCObjectWriter.h
+++ b/include/llvm/MC/MCObjectWriter.h
@@ -16,6 +16,7 @@
namespace llvm {
class MCAsmFixup;
+class MCAsmLayout;
class MCAssembler;
class MCFragment;
class MCValue;
@@ -69,6 +70,7 @@ public:
/// information about the relocation so that it can be emitted during
/// WriteObject().
virtual void RecordRelocation(const MCAssembler &Asm,
+ const MCAsmLayout &Layout,
const MCFragment *Fragment,
const MCAsmFixup &Fixup, MCValue Target,
uint64_t &FixedValue) = 0;
@@ -78,7 +80,8 @@ public:
/// This routine is called by the assembler after layout and relaxation is
/// complete, fixups have been evaluate and applied, and relocations
/// generated.
- virtual void WriteObject(const MCAssembler &Asm) = 0;
+ virtual void WriteObject(const MCAssembler &Asm,
+ const MCAsmLayout &Layout) = 0;
/// @}
/// @name Binary Output