mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
DebugInfo: Pass MCSymbolRefExprs for labels instead of MCSymbols
This is a precursor to adding debug info support for TLS which requires non-default relocations applied to TLS symbols. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185202 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -253,7 +253,7 @@ void DIEInteger::print(raw_ostream &O) const {
|
||||
/// EmitValue - Emit label value.
|
||||
///
|
||||
void DIELabel::EmitValue(AsmPrinter *AP, unsigned Form) const {
|
||||
AP->OutStreamer.EmitSymbolValue(Label, SizeOf(AP, Form));
|
||||
AP->OutStreamer.EmitValue(Label, SizeOf(AP, Form));
|
||||
}
|
||||
|
||||
/// SizeOf - Determine size of label value in bytes.
|
||||
@ -267,7 +267,7 @@ unsigned DIELabel::SizeOf(AsmPrinter *AP, unsigned Form) const {
|
||||
|
||||
#ifndef NDEBUG
|
||||
void DIELabel::print(raw_ostream &O) const {
|
||||
O << "Lbl: " << Label->getName();
|
||||
O << "Lbl: " << Label->getSymbol().getName();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user