Rename HasData to IsRegistered.

There is no MCSectionData, so the old name is now meaningless.

Also remove some asserts/checks that were there just because the information
they used was in MCSectionData.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238708 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2015-06-01 01:52:18 +00:00
parent d1678240e5
commit 223e58b67d
4 changed files with 7 additions and 19 deletions

View File

@@ -911,11 +911,11 @@ public:
}
void registerSymbol(const MCSymbol &Symbol, bool *Created = nullptr) {
bool New = !Symbol.hasData();
bool New = !Symbol.isRegistered();
if (Created)
*Created = New;
if (New) {
Symbol.initializeData();
Symbol.setIsRegistered(true);
Symbols.push_back(&Symbol);
}
}