summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-26 18:15:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-26 18:15:06 +0000
commit95506d40c5bafc72aeebd96dca2b0f92bd0480f1 (patch)
treeab4cf934a739a7eac1f63da971aaa431379a6c7a /include
parentd9c2af5409e1d2ab4965fc2cae5a4090a7a29249 (diff)
downloadllvm-95506d40c5bafc72aeebd96dca2b0f92bd0480f1.tar.gz
llvm-95506d40c5bafc72aeebd96dca2b0f92bd0480f1.tar.bz2
llvm-95506d40c5bafc72aeebd96dca2b0f92bd0480f1.tar.xz
MC: Change RelaxInstruction to only take the input and output instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104713 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetAsmBackend.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/llvm/Target/TargetAsmBackend.h b/include/llvm/Target/TargetAsmBackend.h
index 7a1689d087..979595ad4f 100644
--- a/include/llvm/Target/TargetAsmBackend.h
+++ b/include/llvm/Target/TargetAsmBackend.h
@@ -16,7 +16,6 @@ namespace llvm {
class MCDataFragment;
class MCFixup;
class MCInst;
-class MCInstFragment;
class MCObjectWriter;
class MCSection;
template<typename T>
@@ -111,13 +110,16 @@ public:
/// MayNeedRelaxation - Check whether the given instruction may need
/// relaxation.
///
- /// \arg Inst - The instruction to test.
+ /// \param Inst - The instruction to test.
virtual bool MayNeedRelaxation(const MCInst &Inst) const = 0;
/// RelaxInstruction - Relax the instruction in the given fragment to the next
/// wider instruction.
- virtual void RelaxInstruction(const MCInstFragment *IF,
- MCInst &Res) const = 0;
+ ///
+ /// \param Inst - The instruction to relax, which may be the same as the
+ /// output.
+ /// \parm Res [output] - On return, the relaxed instruction.
+ virtual void RelaxInstruction(const MCInst &Inst, MCInst &Res) const = 0;
/// WriteNopData - Write an (optimal) nop sequence of Count bytes to the given
/// output. If the target cannot generate such a sequence, it should return an