diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-03-19 09:28:12 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-19 09:28:12 +0000 |
| commit | f0517efc6c2d7e3476481d9b4b6a59f833b6f9e9 (patch) | |
| tree | bf6d24f94486e1bf7dc294cf8034021fae07c35c /llvm/lib/MC | |
| parent | ef01f71a5a7b80921b8f6a95af78faeb04f02163 (diff) | |
| download | bcm5719-llvm-f0517efc6c2d7e3476481d9b4b6a59f833b6f9e9.tar.gz bcm5719-llvm-f0517efc6c2d7e3476481d9b4b6a59f833b6f9e9.zip | |
MCAssembler: Move ApplyFixup to the TargetAsmBackend, this is a target specific not object writer specific task.
llvm-svn: 98947
Diffstat (limited to 'llvm/lib/MC')
| -rw-r--r-- | llvm/lib/MC/MCAssembler.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp index 500f23f6909..c4c3a8a4f85 100644 --- a/llvm/lib/MC/MCAssembler.cpp +++ b/llvm/lib/MC/MCAssembler.cpp @@ -930,17 +930,6 @@ public: OS << StringTable.str(); } } - - void ApplyFixup(const MCAsmFixup &Fixup, MCDataFragment &DF, - uint64_t FixedValue) { - unsigned Size = 1 << getFixupKindLog2Size(Fixup.Kind); - - // FIXME: Endianness assumption. - assert(Fixup.Offset + Size <= DF.getContents().size() && - "Invalid fixup offset!"); - for (unsigned i = 0; i != Size; ++i) - DF.getContents()[Fixup.Offset + i] = uint8_t(FixedValue >> (i * 8)); - } }; /* *** */ @@ -1475,7 +1464,7 @@ void MCAssembler::Finish() { MOW.RecordRelocation(*this, *DF, Fixup, Target, FixedValue); } - MOW.ApplyFixup(Fixup, *DF, FixedValue); + getBackend().ApplyFixup(Fixup, *DF, FixedValue); } } } |

