diff options
| author | Daniel Sanders <daniel.sanders@imgtec.com> | 2015-11-12 13:33:00 +0000 |
|---|---|---|
| committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2015-11-12 13:33:00 +0000 |
| commit | 9f6ad4974012c5223931a0172d5d6b51753dd15f (patch) | |
| tree | e10ec303cbdd9ade93e3fbd8ecbbf8dc5a0febfb /llvm/lib/MC/MCAsmBackend.cpp | |
| parent | e342469c0ad1141e50bdc6b8a864a589663c6297 (diff) | |
| download | bcm5719-llvm-9f6ad4974012c5223931a0172d5d6b51753dd15f.tar.gz bcm5719-llvm-9f6ad4974012c5223931a0172d5d6b51753dd15f.zip | |
Implement .reloc (constant offset only) with support for R_MIPS_NONE and R_MIPS_32.
Summary:
Support for R_MIPS_NONE allows us to parse MIPS16's usage of .reloc.
R_MIPS_32 was included to be able to better test the directive.
Targets can add their relocations by overriding MCAsmBackend::getFixupKind().
Subscribers: grosbach, rafael, majnemer, dsanders, llvm-commits
Differential Revision: http://reviews.llvm.org/D13659
llvm-svn: 252888
Diffstat (limited to 'llvm/lib/MC/MCAsmBackend.cpp')
| -rw-r--r-- | llvm/lib/MC/MCAsmBackend.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCAsmBackend.cpp b/llvm/lib/MC/MCAsmBackend.cpp index 36c65b7bcd4..fcf139b7253 100644 --- a/llvm/lib/MC/MCAsmBackend.cpp +++ b/llvm/lib/MC/MCAsmBackend.cpp @@ -16,6 +16,10 @@ MCAsmBackend::MCAsmBackend() : HasDataInCodeSupport(false) {} MCAsmBackend::~MCAsmBackend() {} +bool MCAsmBackend::getFixupKind(StringRef Name, MCFixupKind &MappedKind) const { + return false; +} + const MCFixupKindInfo &MCAsmBackend::getFixupKindInfo(MCFixupKind Kind) const { static const MCFixupKindInfo Builtins[] = { {"FK_Data_1", 0, 8, 0}, |

