diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-06-30 22:47:27 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-06-30 22:47:27 +0000 |
commit | 76287ab3a09247bf68051845c33d0c629de3712d (patch) | |
tree | 1ee8333df2864913bb10ffb86f8e4619644c45b5 /llvm/include | |
parent | 3cede51322c253199f0de5d0619d8b9e947ab90a (diff) | |
download | bcm5719-llvm-76287ab3a09247bf68051845c33d0c629de3712d.tar.gz bcm5719-llvm-76287ab3a09247bf68051845c33d0c629de3712d.zip |
Rename and adjust processFixupValue.
It was not processing any value. All that it ever did was force
relocations, so name it shouldForceRelocation.
llvm-svn: 306906
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/MC/MCAsmBackend.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/include/llvm/MC/MCAsmBackend.h b/llvm/include/llvm/MC/MCAsmBackend.h index a270973204f..c9c43a22da5 100644 --- a/llvm/include/llvm/MC/MCAsmBackend.h +++ b/llvm/include/llvm/MC/MCAsmBackend.h @@ -60,11 +60,12 @@ public: /// Get information on a fixup kind. virtual const MCFixupKindInfo &getFixupKindInfo(MCFixupKind Kind) const; - /// Target hook to adjust the literal value of a fixup if necessary. - /// IsResolved signals whether the caller believes a relocation is needed; the - /// target can modify the value. The default does nothing. - virtual void processFixupValue(const MCAssembler &Asm, const MCFixup &Fixup, - const MCValue &Target, bool &IsResolved) {} + /// Hook to check if a relocation is needed for some target specific reason. + virtual bool shouldForceRelocation(const MCAssembler &Asm, + const MCFixup &Fixup, + const MCValue &Target) { + return false; + } /// Apply the \p Value for given \p Fixup into the provided data fragment, at /// the offset specified by the fixup and following the fixup kind as |