forked from OSchip/llvm-project
We want to add the entry point to the root set unconditionally, but these
asserts don't allow us to do it. Remove them, they're not really needed anyway. llvm-svn: 231445
This commit is contained in:
parent
41ee2e3ff9
commit
5dfe0ffb0c
|
@ -62,24 +62,19 @@ public:
|
|||
/// should be marked live (along with all Atoms they reference). Usually
|
||||
/// this method returns false for main executables, but true for dynamic
|
||||
/// shared libraries.
|
||||
bool globalsAreDeadStripRoots() const {
|
||||
assert(_deadStrip && "only applicable when deadstripping enabled");
|
||||
return _globalsAreDeadStripRoots;
|
||||
}
|
||||
bool globalsAreDeadStripRoots() const { return _globalsAreDeadStripRoots; };
|
||||
|
||||
/// Only used if deadStrip() returns true. This method returns the names
|
||||
/// of DefinedAtoms that should be marked live (along with all Atoms they
|
||||
/// reference). Only Atoms with scope scopeLinkageUnit or scopeGlobal can
|
||||
/// be kept live using this method.
|
||||
const std::vector<StringRef> &deadStripRoots() const {
|
||||
assert(_deadStrip && "only applicable when deadstripping enabled");
|
||||
return _deadStripRoots;
|
||||
}
|
||||
|
||||
/// Add the given symbol name to the dead strip root set. Only used if
|
||||
/// deadStrip() returns true.
|
||||
void addDeadStripRoot(StringRef symbolName) {
|
||||
assert(_deadStrip && "only applicable when deadstripping enabled");
|
||||
assert(!symbolName.empty() && "Empty symbol cannot be a dead strip root");
|
||||
_deadStripRoots.push_back(symbolName);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue