aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/ValueSymbolTable.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-07 06:22:45 +0000
committerChris Lattner <sabre@nondot.org>2007-02-07 06:22:45 +0000
commit7f1444bc0aefdd924e9b231e20d4c0529311e141 (patch)
tree0e1008865a141be2a99c669820f50e4074f98144 /lib/VMCore/ValueSymbolTable.cpp
parenta3832fd46af09872a9c6322b9d23df8b4934c897 (diff)
shrink vmcore by moving symbol table stripping support out of VMCore into
the one IPO pass that uses it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33990 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/ValueSymbolTable.cpp')
-rw-r--r--lib/VMCore/ValueSymbolTable.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/VMCore/ValueSymbolTable.cpp b/lib/VMCore/ValueSymbolTable.cpp
index 41b6d7b5a3..142b9f9f08 100644
--- a/lib/VMCore/ValueSymbolTable.cpp
+++ b/lib/VMCore/ValueSymbolTable.cpp
@@ -59,22 +59,6 @@ Value *ValueSymbolTable::lookup(const std::string &Name) const {
return 0;
}
-// Strip the symbol table of its names.
-//
-bool ValueSymbolTable::strip() {
- bool RemovedSymbol = false;
- for (iterator VI = vmap.begin(), VE = vmap.end(); VI != VE; ) {
- Value *V = VI->second;
- ++VI;
- if (!isa<GlobalValue>(V) || cast<GlobalValue>(V)->hasInternalLinkage()) {
- // Set name to "", removing from symbol table!
- V->setName("");
- RemovedSymbol = true;
- }
- }
- return RemovedSymbol;
-}
-
// Insert a value into the symbol table with the specified name...
//
void ValueSymbolTable::insert(Value* V) {