mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
Replace getOrCreateSectionData with registerSection.
There is now no SectionData to be created. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238208 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -40,7 +40,6 @@ class MCExpr;
|
||||
class MCFragment;
|
||||
class MCObjectWriter;
|
||||
class MCSection;
|
||||
class MCSectionData;
|
||||
class MCSubtargetInfo;
|
||||
class MCValue;
|
||||
class MCAsmBackend;
|
||||
@@ -884,13 +883,7 @@ public:
|
||||
/// \name Backend Data Access
|
||||
/// @{
|
||||
|
||||
MCSectionData &getOrCreateSectionData(MCSection &Section,
|
||||
bool *Created = nullptr) {
|
||||
bool C = Sections.insert(&Section);
|
||||
if (Created)
|
||||
*Created = C;
|
||||
return Section.getSectionData();
|
||||
}
|
||||
bool registerSection(MCSection &Section) { return Sections.insert(&Section); }
|
||||
|
||||
bool hasSymbolData(const MCSymbol &Symbol) const { return Symbol.hasData(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user