mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Remove trivial forwarding function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238707 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2dd8a67317
commit
d1678240e5
@ -910,12 +910,11 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
bool hasSymbolData(const MCSymbol &Symbol) const { return Symbol.hasData(); }
|
||||
|
||||
void registerSymbol(const MCSymbol &Symbol, bool *Created = nullptr) {
|
||||
bool New = !Symbol.hasData();
|
||||
if (Created)
|
||||
*Created = !hasSymbolData(Symbol);
|
||||
if (!hasSymbolData(Symbol)) {
|
||||
*Created = New;
|
||||
if (New) {
|
||||
Symbol.initializeData();
|
||||
Symbols.push_back(&Symbol);
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ bool MCObjectStreamer::emitAbsoluteSymbolDiff(const MCSymbol *Hi,
|
||||
const MCSymbol *Lo,
|
||||
unsigned Size) {
|
||||
// Must have symbol data.
|
||||
if (!Assembler->hasSymbolData(*Hi) || !Assembler->hasSymbolData(*Lo))
|
||||
if (!Hi->hasData() || !Lo->hasData())
|
||||
return false;
|
||||
|
||||
// Must both be assigned to the same (valid) fragment.
|
||||
|
@ -706,7 +706,7 @@ void WinCOFFObjectWriter::RecordRelocation(
|
||||
|
||||
const MCSymbol &Symbol = Target.getSymA()->getSymbol();
|
||||
const MCSymbol &A = Symbol;
|
||||
if (!Asm.hasSymbolData(A))
|
||||
if (!A.hasData())
|
||||
Asm.getContext().reportFatalError(Fixup.getLoc(),
|
||||
Twine("symbol '") + A.getName() +
|
||||
"' can not be undefined");
|
||||
|
Loading…
Reference in New Issue
Block a user