mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-13 08:26:02 +00:00
inline the bool form of PrintRelDirective away, leaving just the unsigned form.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98106 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -77,13 +77,6 @@ unsigned DwarfPrinter::SizeOfEncodedValue(unsigned Encoding) const {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void DwarfPrinter::PrintRelDirective(bool Force32Bit) const {
|
|
||||||
if (Force32Bit || TD->getPointerSize() == sizeof(int32_t))
|
|
||||||
O << MAI->getData32bitsDirective();
|
|
||||||
else
|
|
||||||
O << MAI->getData64bitsDirective();
|
|
||||||
}
|
|
||||||
|
|
||||||
void DwarfPrinter::PrintRelDirective(unsigned Encoding) const {
|
void DwarfPrinter::PrintRelDirective(unsigned Encoding) const {
|
||||||
unsigned Size = SizeOfEncodedValue(Encoding);
|
unsigned Size = SizeOfEncodedValue(Encoding);
|
||||||
assert((Size == 4 || Size == 8) && "Do not support other types or rels!");
|
assert((Size == 4 || Size == 8) && "Do not support other types or rels!");
|
||||||
@@ -211,7 +204,10 @@ void DwarfPrinter::EmitReference(const MCSymbol *Sym, bool IsPCRelative,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: Need an MCExpr for ".".
|
// FIXME: Need an MCExpr for ".".
|
||||||
PrintRelDirective(Force32Bit);
|
if (Force32Bit || TD->getPointerSize() == sizeof(int32_t))
|
||||||
|
O << MAI->getData32bitsDirective();
|
||||||
|
else
|
||||||
|
O << MAI->getData64bitsDirective();
|
||||||
O << *Sym;
|
O << *Sym;
|
||||||
if (IsPCRelative) O << "-" << MAI->getPCSymbol();
|
if (IsPCRelative) O << "-" << MAI->getPCSymbol();
|
||||||
}
|
}
|
||||||
|
@@ -89,7 +89,6 @@ public:
|
|||||||
unsigned SizeOfEncodedValue(unsigned Encoding) const;
|
unsigned SizeOfEncodedValue(unsigned Encoding) const;
|
||||||
|
|
||||||
void PrintRelDirective(unsigned Encoding) const;
|
void PrintRelDirective(unsigned Encoding) const;
|
||||||
void PrintRelDirective(bool Force32Bit = false) const;
|
|
||||||
|
|
||||||
/// EmitEncodingByte - Emit a .byte 42 directive that corresponds to an
|
/// EmitEncodingByte - Emit a .byte 42 directive that corresponds to an
|
||||||
/// encoding. If verbose assembly output is enabled, we output comments
|
/// encoding. If verbose assembly output is enabled, we output comments
|
||||||
|
Reference in New Issue
Block a user