mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-15 19:24:33 +00:00
Remove the dependent libraries feature.
The dependent libraries feature was never used and has bit-rotted. Remove it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -55,7 +55,6 @@ Module::~Module() {
|
||||
GlobalList.clear();
|
||||
FunctionList.clear();
|
||||
AliasList.clear();
|
||||
LibraryList.clear();
|
||||
NamedMDList.clear();
|
||||
delete ValSymTab;
|
||||
delete static_cast<StringMap<NamedMDNode *> *>(NamedMDSymTab);
|
||||
@@ -450,20 +449,3 @@ void Module::dropAllReferences() {
|
||||
for(Module::alias_iterator I = alias_begin(), E = alias_end(); I != E; ++I)
|
||||
I->dropAllReferences();
|
||||
}
|
||||
|
||||
void Module::addLibrary(StringRef Lib) {
|
||||
for (Module::lib_iterator I = lib_begin(), E = lib_end(); I != E; ++I)
|
||||
if (*I == Lib)
|
||||
return;
|
||||
LibraryList.push_back(Lib);
|
||||
}
|
||||
|
||||
void Module::removeLibrary(StringRef Lib) {
|
||||
LibraryListType::iterator I = LibraryList.begin();
|
||||
LibraryListType::iterator E = LibraryList.end();
|
||||
for (;I != E; ++I)
|
||||
if (*I == Lib) {
|
||||
LibraryList.erase(I);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user