summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Module.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-11-27 09:55:56 +0000
committerBill Wendling <isanbard@gmail.com>2012-11-27 09:55:56 +0000
commitee5984df399aa360047e2e4ac9209bd886bc4961 (patch)
tree37b61bcdea511e1e137a16c16bb7def649f47f49 /llvm/lib/VMCore/Module.cpp
parent69a071d5a676d66761dc9808265795cff17d1b80 (diff)
downloadbcm5719-llvm-ee5984df399aa360047e2e4ac9209bd886bc4961.tar.gz
bcm5719-llvm-ee5984df399aa360047e2e4ac9209bd886bc4961.zip
Remove the dependent libraries feature.
The dependent libraries feature was never used and has bit-rotted. Remove it. llvm-svn: 168694
Diffstat (limited to 'llvm/lib/VMCore/Module.cpp')
-rw-r--r--llvm/lib/VMCore/Module.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/llvm/lib/VMCore/Module.cpp b/llvm/lib/VMCore/Module.cpp
index 5b5176b3c70..3602a7a8f35 100644
--- a/llvm/lib/VMCore/Module.cpp
+++ b/llvm/lib/VMCore/Module.cpp
@@ -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;
- }
-}
OpenPOWER on IntegriCloud