mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
[DWARF] Add EmitDwarfOffset function, NFC.
Added EmitDwarfOffset function after discussion with Eric Christofer. llvm-svn: 328212
This commit is contained in:
parent
72a552dcd4
commit
c65ff81b00
@ -475,6 +475,9 @@ public:
|
||||
EmitLabelPlusOffset(Label, 0, Size, IsSectionRelative);
|
||||
}
|
||||
|
||||
/// Emit something like ".long Label + Offset".
|
||||
void EmitDwarfOffset(const MCSymbol *Label, uint64_t Offset) const;
|
||||
|
||||
//===------------------------------------------------------------------===//
|
||||
// Dwarf Emission Helper Routines
|
||||
//===------------------------------------------------------------------===//
|
||||
|
@ -179,6 +179,10 @@ void AsmPrinter::emitDwarfStringOffset(DwarfStringPoolEntry S) const {
|
||||
EmitInt32(S.Offset);
|
||||
}
|
||||
|
||||
void AsmPrinter::EmitDwarfOffset(const MCSymbol *Label, uint64_t Offset) const {
|
||||
EmitLabelPlusOffset(Label, Offset, MAI->getCodePointerSize());
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Dwarf Lowering Routines
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Loading…
Reference in New Issue
Block a user