mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
DebugInfo: Move DIExpression bit-piece API to MDExpression
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234286 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -65,21 +65,6 @@ unsigned DIVariable::getSizeInBits(const DITypeIdentifierMap &Map) {
|
||||
return Ty.getSizeInBits();
|
||||
}
|
||||
|
||||
bool DIExpression::isBitPiece() const {
|
||||
unsigned N = getNumElements();
|
||||
return N >=3 && getElement(N-3) == dwarf::DW_OP_bit_piece;
|
||||
}
|
||||
|
||||
uint64_t DIExpression::getBitPieceOffset() const {
|
||||
assert(isBitPiece() && "not a piece");
|
||||
return getElement(getNumElements()-2);
|
||||
}
|
||||
|
||||
uint64_t DIExpression::getBitPieceSize() const {
|
||||
assert(isBitPiece() && "not a piece");
|
||||
return getElement(getNumElements()-1);
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Simple Descriptor Constructors and other Methods
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Reference in New Issue
Block a user