mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-21 17:46:17 +00:00
Remove getOrCreateSymbolData. There is no MCSymbolData anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238952 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6da0e02282
commit
4ce10b56e6
@ -56,9 +56,6 @@ public:
|
|||||||
/// Object streamers require the integrated assembler.
|
/// Object streamers require the integrated assembler.
|
||||||
bool isIntegratedAssemblerRequired() const override { return true; }
|
bool isIntegratedAssemblerRequired() const override { return true; }
|
||||||
|
|
||||||
void getOrCreateSymbolData(const MCSymbol *Symbol) {
|
|
||||||
getAssembler().registerSymbol(*Symbol);
|
|
||||||
}
|
|
||||||
void EmitFrames(MCAsmBackend *MAB);
|
void EmitFrames(MCAsmBackend *MAB);
|
||||||
void EmitCFISections(bool EH, bool Debug) override;
|
void EmitCFISections(bool EH, bool Debug) override;
|
||||||
|
|
||||||
|
@ -970,7 +970,7 @@ void ARMTargetELFStreamer::emitLabel(MCSymbol *Symbol) {
|
|||||||
if (!Streamer.IsThumb)
|
if (!Streamer.IsThumb)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Streamer.getOrCreateSymbolData(Symbol);
|
Streamer.getAssembler().registerSymbol(*Symbol);
|
||||||
unsigned Type = cast<MCSymbolELF>(Symbol)->getType();
|
unsigned Type = cast<MCSymbolELF>(Symbol)->getType();
|
||||||
if (Type == ELF_STT_Func || Type == ELF_STT_GnuIFunc)
|
if (Type == ELF_STT_Func || Type == ELF_STT_GnuIFunc)
|
||||||
Streamer.EmitThumbFunc(Symbol);
|
Streamer.EmitThumbFunc(Symbol);
|
||||||
|
@ -43,7 +43,7 @@ void MipsELFStreamer::createPendingLabelRelocs() {
|
|||||||
if (ELFTargetStreamer->isMicroMipsEnabled()) {
|
if (ELFTargetStreamer->isMicroMipsEnabled()) {
|
||||||
for (auto *L : Labels) {
|
for (auto *L : Labels) {
|
||||||
auto *Label = cast<MCSymbolELF>(L);
|
auto *Label = cast<MCSymbolELF>(L);
|
||||||
getOrCreateSymbolData(Label);
|
getAssembler().registerSymbol(*Label);
|
||||||
// The "other" values are stored in the last 6 bits of the second byte.
|
// The "other" values are stored in the last 6 bits of the second byte.
|
||||||
// The traditional defines for STO values assume the full byte and thus
|
// The traditional defines for STO values assume the full byte and thus
|
||||||
// the shift to pack it.
|
// the shift to pack it.
|
||||||
|
@ -457,7 +457,7 @@ void MipsTargetELFStreamer::emitLabel(MCSymbol *S) {
|
|||||||
auto *Symbol = cast<MCSymbolELF>(S);
|
auto *Symbol = cast<MCSymbolELF>(S);
|
||||||
if (!isMicroMipsEnabled())
|
if (!isMicroMipsEnabled())
|
||||||
return;
|
return;
|
||||||
getStreamer().getOrCreateSymbolData(Symbol);
|
getStreamer().getAssembler().registerSymbol(*Symbol);
|
||||||
uint8_t Type = Symbol->getType();
|
uint8_t Type = Symbol->getType();
|
||||||
if (Type != ELF::STT_FUNC)
|
if (Type != ELF::STT_FUNC)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user