mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
For COFF only: dwarf debug info output a label reference as a section relative item only when it's one of dw_from strp, sec_offset, ref_addr or op_call_ref instead of going by size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188296 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -359,13 +359,15 @@ namespace llvm {
|
||||
/// where the size in bytes of the directive is specified by Size and Label
|
||||
/// specifies the label. This implicitly uses .set if it is available.
|
||||
void EmitLabelPlusOffset(const MCSymbol *Label, uint64_t Offset,
|
||||
unsigned Size) const;
|
||||
unsigned Size,
|
||||
bool IsSectionRelative = false) const;
|
||||
|
||||
/// EmitLabelReference - Emit something like ".long Label"
|
||||
/// where the size in bytes of the directive is specified by Size and Label
|
||||
/// specifies the label.
|
||||
void EmitLabelReference(const MCSymbol *Label, unsigned Size) const {
|
||||
EmitLabelPlusOffset(Label, 0, Size);
|
||||
void EmitLabelReference(const MCSymbol *Label, unsigned Size,
|
||||
bool IsSectionRelative = false) const {
|
||||
EmitLabelPlusOffset(Label, 0, Size, IsSectionRelative);
|
||||
}
|
||||
|
||||
//===------------------------------------------------------------------===//
|
||||
|
Reference in New Issue
Block a user