summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-12-06 00:47:03 +0000
committerJim Grosbach <grosbach@apple.com>2011-12-06 00:47:03 +0000
commit25b63fa117f7516e9f685f422b3ec4053d2106f9 (patch)
tree28ca52c13a928121cc3c5e972a3ea868047ff83e /llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
parent72d4d32cd629b41616e389ed8301a3086c6d01c1 (diff)
downloadbcm5719-llvm-25b63fa117f7516e9f685f422b3ec4053d2106f9.tar.gz
bcm5719-llvm-25b63fa117f7516e9f685f422b3ec4053d2106f9.zip
Move target-specific logic out of generic MCAssembler.
Whether a fixup needs relaxation for the associated instruction is a target-specific function, as the FIXME indicated. Create a hook for that and use it. llvm-svn: 145881
Diffstat (limited to 'llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
index 9f2fd6d01b8..12e0b3d436d 100644
--- a/llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
+++ b/llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
@@ -93,6 +93,15 @@ public:
// FIXME.
return false;
}
+
+ bool fixupNeedsRelaxation(const MCFixup &Fixup,
+ uint64_t Value,
+ const MCInstFragment *DF,
+ const MCAsmLayout &Layout) const {
+ // FIXME.
+ assert(0 && "RelaxInstruction() unimplemented");
+ }
+
void RelaxInstruction(const MCInst &Inst, MCInst &Res) const {
// FIXME.
OpenPOWER on IntegriCloud