diff options
author | Dylan McKay <me@dylanmckay.io> | 2017-07-01 01:18:12 +0000 |
---|---|---|
committer | Dylan McKay <me@dylanmckay.io> | 2017-07-01 01:18:12 +0000 |
commit | 7ca7344abeef746aa3697aaccfb0d32f72331262 (patch) | |
tree | 9ecac8b5754a0175c4b6d657e1acdcc73b48f102 /llvm/lib/Target/AVR | |
parent | dc9d8fb9ce8e7c4469259c04e05b2d0be9d34390 (diff) | |
download | bcm5719-llvm-7ca7344abeef746aa3697aaccfb0d32f72331262.tar.gz bcm5719-llvm-7ca7344abeef746aa3697aaccfb0d32f72331262.zip |
[AVR] Update AVRASmBackend from API change in r306906
llvm-svn: 306923
Diffstat (limited to 'llvm/lib/Target/AVR')
-rw-r--r-- | llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp | 10 | ||||
-rw-r--r-- | llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp b/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp index b8f30ec8280..d18298385ad 100644 --- a/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp +++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp @@ -449,16 +449,16 @@ bool AVRAsmBackend::writeNopData(uint64_t Count, MCObjectWriter *OW) const { return true; } -void AVRAsmBackend::processFixupValue(const MCAssembler &Asm, - const MCFixup &Fixup, - const MCValue &Target, bool &IsResolved) { +bool AVRAsmBackend::shouldForceRelocation(const MCAssembler &Asm, + const MCFixup &Fixup, + const MCValue &Target) { switch ((unsigned) Fixup.getKind()) { + default: return false; // Fixups which should always be recorded as relocations. case AVR::fixup_7_pcrel: case AVR::fixup_13_pcrel: case AVR::fixup_call: - IsResolved = false; - break; + return true; } } diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h b/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h index 80d268f9cba..4a75e3b0d22 100644 --- a/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h +++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.h @@ -64,8 +64,8 @@ public: bool writeNopData(uint64_t Count, MCObjectWriter *OW) const override; - void processFixupValue(const MCAssembler &Asm, const MCFixup &Fixup, - const MCValue &Target, bool &IsResolved) override; + bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup, + const MCValue &Target) override; private: Triple::OSType OSType; |