diff options
author | Adrian Prantl <aprantl@apple.com> | 2015-01-13 23:11:51 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2015-01-13 23:11:51 +0000 |
commit | 0a3bfdbd374941c053660dcdce20b778bfa5cafd (patch) | |
tree | 74264db60908e4ea05cec89794b30aad0be6abb7 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 172ab66a11568c836f2f72e0bae2152630a988a4 (diff) | |
download | bcm5719-llvm-0a3bfdbd374941c053660dcdce20b778bfa5cafd.tar.gz bcm5719-llvm-0a3bfdbd374941c053660dcdce20b778bfa5cafd.zip |
cleanup.
llvm-svn: 225848
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 99f4d1c5d44..1738dce3c4c 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1670,19 +1670,18 @@ void DwarfDebug::emitLocPieces(ByteStreamer &Streamer, unsigned Offset = 0; for (auto Piece : Values) { + const unsigned SizeOfByte = 8; DIExpression Expr = Piece.getExpression(); unsigned PieceOffset = Expr.getPieceOffset(); unsigned PieceSize = Expr.getPieceSize(); assert(Offset <= PieceOffset && "overlapping or duplicate pieces"); if (Offset < PieceOffset) { // The DWARF spec seriously mandates pieces with no locations for gaps. - Asm->EmitDwarfOpPiece(Streamer, (PieceOffset-Offset)*8); + Asm->EmitDwarfOpPiece(Streamer, (PieceOffset-Offset)*SizeOfByte); Offset += PieceOffset-Offset; } - Offset += PieceSize; - const unsigned SizeOfByte = 8; #ifndef NDEBUG DIVariable Var = Piece.getVariable(); assert(!Var.isIndirect() && "indirect address for piece"); |