aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-01-18 00:23:57 +0000
committerJim Grosbach <grosbach@apple.com>2012-01-18 00:23:57 +0000
commit9b5b125c34b47e0e7eef2548acee8bf1448c4b71 (patch)
tree94ac286ee5aab98135e64016fd2b811a61864773 /include/llvm/MC
parent31867660cb81ea2b1d1a6ffa7d09c91acb754a8b (diff)
downloadexternal_llvm-9b5b125c34b47e0e7eef2548acee8bf1448c4b71.zip
external_llvm-9b5b125c34b47e0e7eef2548acee8bf1448c4b71.tar.gz
external_llvm-9b5b125c34b47e0e7eef2548acee8bf1448c4b71.tar.bz2
Move some ARM specific MCAssmebler bits into the ARMAsmBackend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148364 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
-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 b841ddb..285e07c 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