mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
For PR1163:
Make the Module's dependent library use a std::vector instead of SetVector adjust #includes in .cpp files because SetVector.h is no longer included. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33855 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -360,3 +360,20 @@ void Module::dropAllReferences() {
|
||||
I->dropAllReferences();
|
||||
}
|
||||
|
||||
void Module::addLibrary(const std::string& 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(const std::string& 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