aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCAsmBackend.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/MC/MCAsmBackend.h')
-rw-r--r--include/llvm/MC/MCAsmBackend.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAsmBackend.h b/include/llvm/MC/MCAsmBackend.h
index b841ddb9f5..285e07c0d6 100644
--- a/include/llvm/MC/MCAsmBackend.h
+++ b/include/llvm/MC/MCAsmBackend.h
@@ -17,12 +17,15 @@
namespace llvm {
class MCAsmLayout;
+class MCAssembler;
class MCELFObjectTargetWriter;
class MCFixup;
+class MCFragment;
class MCInst;
class MCInstFragment;
class MCObjectWriter;
class MCSection;
+class MCValue;
template<typename T>
class SmallVectorImpl;
class raw_ostream;
@@ -87,6 +90,13 @@ public:
/// getFixupKindInfo - Get information on a fixup kind.
virtual const MCFixupKindInfo &getFixupKindInfo(MCFixupKind Kind) const;
+ /// processFixupValue - Target hook to adjust the literal value of a fixup
+ /// if necessary. The default does nothing.
+ virtual void processFixupValue(const MCAssembler &Asm,
+ const MCAsmLayout &Layout,
+ const MCFixup &Fixup, const MCFragment *DF,
+ MCValue &Target, uint64_t &Value) {}
+
/// @}
/// ApplyFixup - Apply the \arg Value for given \arg Fixup into the provided