Debug info: Refactor EmitDwarfRegOpPiece to be a member function of

AsmPrinter.
No functional change.

http://reviews.llvm.org/D3373
rdar://problem/15928306

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207369 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Adrian Prantl
2014-04-27 18:25:45 +00:00
parent eccd574af8
commit 75955d843f
2 changed files with 55 additions and 18 deletions

View File

@@ -430,7 +430,17 @@ namespace llvm {
/// encoding specified.
virtual unsigned getISAEncoding() { return 0; }
/// \brief Emit a partial dwarf register operation.
/// \param MLoc the register
/// \param PieceSizeInBits size and
/// \param PieceOffsetBits offset of the piece in bits, if this is one
/// piece of an aggregate value.
void EmitDwarfRegOpPiece(ByteStreamer &BS, const MachineLocation &MLoc,
unsigned PieceSize,
unsigned PieceOffset) const;
/// EmitDwarfRegOp - Emit dwarf register operation.
/// \param Indirect whether this is a register-indirect address
virtual void EmitDwarfRegOp(ByteStreamer &BS, const MachineLocation &MLoc,
bool Indirect) const;