mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-27 05:32:22 +00:00
Make implementation details in DwarfExpression protected. (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298308 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3fd77c94a3
commit
c6ad6fa247
@ -102,13 +102,6 @@ protected:
|
|||||||
/// Add masking operations to stencil out a subregister.
|
/// Add masking operations to stencil out a subregister.
|
||||||
void maskSubRegister();
|
void maskSubRegister();
|
||||||
|
|
||||||
public:
|
|
||||||
DwarfExpression(unsigned DwarfVersion) : DwarfVersion(DwarfVersion) {}
|
|
||||||
virtual ~DwarfExpression() {};
|
|
||||||
|
|
||||||
/// This needs to be called last to commit any pending changes.
|
|
||||||
void finalize();
|
|
||||||
|
|
||||||
/// Output a dwarf operand and an optional assembler comment.
|
/// Output a dwarf operand and an optional assembler comment.
|
||||||
virtual void emitOp(uint8_t Op, const char *Comment = nullptr) = 0;
|
virtual void emitOp(uint8_t Op, const char *Comment = nullptr) = 0;
|
||||||
/// Emit a raw signed value.
|
/// Emit a raw signed value.
|
||||||
@ -147,6 +140,13 @@ public:
|
|||||||
/// expression. See PR21176 for more details.
|
/// expression. See PR21176 for more details.
|
||||||
void addStackValue();
|
void addStackValue();
|
||||||
|
|
||||||
|
public:
|
||||||
|
DwarfExpression(unsigned DwarfVersion) : DwarfVersion(DwarfVersion) {}
|
||||||
|
virtual ~DwarfExpression() {};
|
||||||
|
|
||||||
|
/// This needs to be called last to commit any pending changes.
|
||||||
|
void finalize();
|
||||||
|
|
||||||
/// Emit an indirect dwarf register operation for the given machine register.
|
/// Emit an indirect dwarf register operation for the given machine register.
|
||||||
/// \return false if no DWARF register exists for MachineReg.
|
/// \return false if no DWARF register exists for MachineReg.
|
||||||
bool addMachineRegIndirect(const TargetRegisterInfo &TRI, unsigned MachineReg,
|
bool addMachineRegIndirect(const TargetRegisterInfo &TRI, unsigned MachineReg,
|
||||||
@ -206,15 +206,14 @@ public:
|
|||||||
class DebugLocDwarfExpression : public DwarfExpression {
|
class DebugLocDwarfExpression : public DwarfExpression {
|
||||||
ByteStreamer &BS;
|
ByteStreamer &BS;
|
||||||
|
|
||||||
public:
|
|
||||||
DebugLocDwarfExpression(unsigned DwarfVersion, ByteStreamer &BS)
|
|
||||||
: DwarfExpression(DwarfVersion), BS(BS) {}
|
|
||||||
|
|
||||||
void emitOp(uint8_t Op, const char *Comment = nullptr) override;
|
void emitOp(uint8_t Op, const char *Comment = nullptr) override;
|
||||||
void emitSigned(int64_t Value) override;
|
void emitSigned(int64_t Value) override;
|
||||||
void emitUnsigned(uint64_t Value) override;
|
void emitUnsigned(uint64_t Value) override;
|
||||||
bool isFrameRegister(const TargetRegisterInfo &TRI,
|
bool isFrameRegister(const TargetRegisterInfo &TRI,
|
||||||
unsigned MachineReg) override;
|
unsigned MachineReg) override;
|
||||||
|
public:
|
||||||
|
DebugLocDwarfExpression(unsigned DwarfVersion, ByteStreamer &BS)
|
||||||
|
: DwarfExpression(DwarfVersion), BS(BS) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// DwarfExpression implementation for singular DW_AT_location.
|
/// DwarfExpression implementation for singular DW_AT_location.
|
||||||
@ -223,13 +222,13 @@ const AsmPrinter ≈
|
|||||||
DwarfUnit &DU;
|
DwarfUnit &DU;
|
||||||
DIELoc ¨
|
DIELoc ¨
|
||||||
|
|
||||||
public:
|
|
||||||
DIEDwarfExpression(const AsmPrinter &AP, DwarfUnit &DU, DIELoc &DIE);
|
|
||||||
void emitOp(uint8_t Op, const char *Comment = nullptr) override;
|
void emitOp(uint8_t Op, const char *Comment = nullptr) override;
|
||||||
void emitSigned(int64_t Value) override;
|
void emitSigned(int64_t Value) override;
|
||||||
void emitUnsigned(uint64_t Value) override;
|
void emitUnsigned(uint64_t Value) override;
|
||||||
bool isFrameRegister(const TargetRegisterInfo &TRI,
|
bool isFrameRegister(const TargetRegisterInfo &TRI,
|
||||||
unsigned MachineReg) override;
|
unsigned MachineReg) override;
|
||||||
|
public:
|
||||||
|
DIEDwarfExpression(const AsmPrinter &AP, DwarfUnit &DU, DIELoc &DIE);
|
||||||
DIELoc *finalize() {
|
DIELoc *finalize() {
|
||||||
DwarfExpression::finalize();
|
DwarfExpression::finalize();
|
||||||
return ¨
|
return ¨
|
||||||
|
Loading…
x
Reference in New Issue
Block a user