mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-30 05:29:47 +00:00
Remove unnecessary addition to API. Replace with something much simpler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143925 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2c802b7e88
commit
76a4e1a068
@ -183,7 +183,7 @@ void DwarfAccelTable::EmitData(AsmPrinter *Asm, DwarfDebug *D) {
|
|||||||
Asm->OutStreamer.EmitLabel((*HI)->Sym);
|
Asm->OutStreamer.EmitLabel((*HI)->Sym);
|
||||||
Asm->OutStreamer.AddComment((*HI)->Str);
|
Asm->OutStreamer.AddComment((*HI)->Str);
|
||||||
Asm->EmitSectionOffset(D->getStringPoolEntry((*HI)->Str),
|
Asm->EmitSectionOffset(D->getStringPoolEntry((*HI)->Str),
|
||||||
D->getDwarfStrSectionSym());
|
D->getStringPool());
|
||||||
Asm->OutStreamer.AddComment("Num DIEs");
|
Asm->OutStreamer.AddComment("Num DIEs");
|
||||||
Asm->EmitInt32((*HI)->DIEOffsets.size());
|
Asm->EmitInt32((*HI)->DIEOffsets.size());
|
||||||
for (std::vector<uint32_t>::const_iterator
|
for (std::vector<uint32_t>::const_iterator
|
||||||
|
@ -165,14 +165,6 @@ MCSymbol *DwarfDebug::getStringPoolEntry(StringRef Str) {
|
|||||||
return Entry.first = Asm->GetTempSymbol("string", Entry.second);
|
return Entry.first = Asm->GetTempSymbol("string", Entry.second);
|
||||||
}
|
}
|
||||||
|
|
||||||
MCSymbol *DwarfDebug::getDwarfStrSectionSym(void) {
|
|
||||||
if (DwarfStrSectionSym) return DwarfStrSectionSym;
|
|
||||||
DwarfStrSectionSym =
|
|
||||||
EmitSectionSym(Asm, Asm->getObjFileLowering().getDwarfStrSection(),
|
|
||||||
"section_str");
|
|
||||||
return DwarfStrSectionSym;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// assignAbbrevNumber - Define a unique number for the abbreviation.
|
/// assignAbbrevNumber - Define a unique number for the abbreviation.
|
||||||
///
|
///
|
||||||
void DwarfDebug::assignAbbrevNumber(DIEAbbrev &Abbrev) {
|
void DwarfDebug::assignAbbrevNumber(DIEAbbrev &Abbrev) {
|
||||||
|
@ -528,10 +528,6 @@ public:
|
|||||||
/// getStringPoolEntry - returns an entry into the string pool with the given
|
/// getStringPoolEntry - returns an entry into the string pool with the given
|
||||||
/// string text.
|
/// string text.
|
||||||
MCSymbol *getStringPoolEntry(StringRef Str);
|
MCSymbol *getStringPoolEntry(StringRef Str);
|
||||||
|
|
||||||
/// getDwarfStrSectionSym - returns the symbol that starts the dwarf string
|
|
||||||
/// section.
|
|
||||||
MCSymbol *getDwarfStrSectionSym();
|
|
||||||
};
|
};
|
||||||
} // End of namespace llvm
|
} // End of namespace llvm
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user