aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-19 09:28:12 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-19 09:28:12 +0000
commit87190c473c216e481e0a70475577e496b3a3449e (patch)
tree921748977bad22a264ce9e3b6ddf7bad3b4e4dd6 /include
parentb1e98945e4b107eb3f2ac1b54706c49864842dc4 (diff)
downloadexternal_llvm-87190c473c216e481e0a70475577e496b3a3449e.zip
external_llvm-87190c473c216e481e0a70475577e496b3a3449e.tar.gz
external_llvm-87190c473c216e481e0a70475577e496b3a3449e.tar.bz2
MCAssembler: Move ApplyFixup to the TargetAsmBackend, this is a target specific not object writer specific task.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetAsmBackend.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetAsmBackend.h b/include/llvm/Target/TargetAsmBackend.h
index faf91c4..cada3e4 100644
--- a/include/llvm/Target/TargetAsmBackend.h
+++ b/include/llvm/Target/TargetAsmBackend.h
@@ -10,7 +10,11 @@
#ifndef LLVM_TARGET_TARGETASMBACKEND_H
#define LLVM_TARGET_TARGETASMBACKEND_H
+#include "llvm/System/DataTypes.h"
+
namespace llvm {
+class MCAsmFixup;
+class MCDataFragment;
class MCSection;
class Target;
@@ -75,6 +79,12 @@ public:
virtual bool doesSectionRequireSymbols(const MCSection &Section) const {
return false;
}
+
+ /// ApplyFixup - Apply the \arg Value for given \arg Fixup into the provided
+ /// data fragment, at the offset specified by the fixup and following the
+ /// fixup kind as appropriate.
+ virtual void ApplyFixup(const MCAsmFixup &Fixup, MCDataFragment &Fragment,
+ uint64_t Value) const = 0;
};
} // End llvm namespace