diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-12-06 00:47:03 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-12-06 00:47:03 +0000 |
commit | 25b63fa117f7516e9f685f422b3ec4053d2106f9 (patch) | |
tree | 28ca52c13a928121cc3c5e972a3ea868047ff83e /llvm/lib/Target/Mips | |
parent | 72d4d32cd629b41616e389ed8301a3086c6d01c1 (diff) | |
download | bcm5719-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/Mips')
-rw-r--r-- | llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp index 7bc5fe4a6e4..20e16368f87 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp @@ -173,6 +173,16 @@ public: return false; } + /// fixupNeedsRelaxation - Target specific predicate for whether a given + /// fixup requires the associated instruction to be relaxed. + bool fixupNeedsRelaxation(const MCFixup &Fixup, + uint64_t Value, + const MCInstFragment *DF, + const MCAsmLayout &Layout) const { + // FIXME. + assert(0 && "RelaxInstruction() unimplemented"); + } + /// RelaxInstruction - Relax the instruction in the given fragment /// to the next wider instruction. /// |