llvm.org GIT mirror llvm / 9fb34c5
cleanup. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225848 91177308-0d34-0410-b5e6-96231b3b80d8 Adrian Prantl 4 years ago
1 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
16691669
16701670 unsigned Offset = 0;
16711671 for (auto Piece : Values) {
1672 const unsigned SizeOfByte = 8;
16721673 DIExpression Expr = Piece.getExpression();
16731674 unsigned PieceOffset = Expr.getPieceOffset();
16741675 unsigned PieceSize = Expr.getPieceSize();
16751676 assert(Offset <= PieceOffset && "overlapping or duplicate pieces");
16761677 if (Offset < PieceOffset) {
16771678 // The DWARF spec seriously mandates pieces with no locations for gaps.
1678 Asm->EmitDwarfOpPiece(Streamer, (PieceOffset-Offset)*8);
1679 Asm->EmitDwarfOpPiece(Streamer, (PieceOffset-Offset)*SizeOfByte);
16791680 Offset += PieceOffset-Offset;
16801681 }
1681
16821682 Offset += PieceSize;
16831683
1684 const unsigned SizeOfByte = 8;
16851684 #ifndef NDEBUG
16861685 DIVariable Var = Piece.getVariable();
16871686 assert(!Var.isIndirect() && "indirect address for piece");