diff options
Diffstat (limited to 'include/llvm/MC')
| -rw-r--r-- | include/llvm/MC/MCAsmBackend.h | 11 | ||||
| -rw-r--r-- | include/llvm/MC/MCWinCOFFObjectWriter.h | 1 | 
2 files changed, 7 insertions, 5 deletions
diff --git a/include/llvm/MC/MCAsmBackend.h b/include/llvm/MC/MCAsmBackend.h index a270973204f2..c9c43a22da5d 100644 --- a/include/llvm/MC/MCAsmBackend.h +++ b/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 diff --git a/include/llvm/MC/MCWinCOFFObjectWriter.h b/include/llvm/MC/MCWinCOFFObjectWriter.h index 6e14cefaa0ab..198a08b5f539 100644 --- a/include/llvm/MC/MCWinCOFFObjectWriter.h +++ b/include/llvm/MC/MCWinCOFFObjectWriter.h @@ -13,6 +13,7 @@  namespace llvm {  class MCAsmBackend; +class MCContext;  class MCFixup;  class MCObjectWriter;  class MCValue;  | 
