aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Function.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-15 21:26:29 +0000
committerChris Lattner <sabre@nondot.org>2002-10-15 21:26:29 +0000
commit0dad6e9c95984804953db0fdcbe0c907d9ee351e (patch)
treefba6caf31e19c26de8cbd61b9e7eeccce09c0026 /lib/VMCore/Function.cpp
parent1b7de965dd3291f4bf96f0a9ce7cf5fdcb4cd7fd (diff)
- Eliminate SymbolTable::ParentSymTab, ST::localLookup, and
Function::ParentSymTab. These aren't needed at all. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4186 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r--lib/VMCore/Function.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp
index d03a72a81a..5edd9ae2a6 100644
--- a/lib/VMCore/Function.cpp
+++ b/lib/VMCore/Function.cpp
@@ -84,7 +84,7 @@ Function::Function(const FunctionType *Ty, bool isInternal,
BasicBlocks.setParent(this);
ArgumentList.setItemParent(this);
ArgumentList.setParent(this);
- ParentSymTab = SymTab = 0;
+ SymTab = 0;
// Create the arguments vector, all arguments start out unnamed.
for (unsigned i = 0, e = Ty->getNumParams(); i != e; ++i) {
@@ -127,10 +127,6 @@ void Function::setParent(Module *parent) {
Parent = parent;
if (getParent())
LeakDetector::removeGarbageObject(this);
-
- // Relink symbol tables together...
- ParentSymTab = Parent ? Parent->getSymbolTableSure() : 0;
- if (SymTab) SymTab->setParentSymTab(ParentSymTab);
}
const FunctionType *Function::getFunctionType() const {
@@ -142,7 +138,7 @@ const Type *Function::getReturnType() const {
}
SymbolTable *Function::getSymbolTableSure() {
- if (!SymTab) SymTab = new SymbolTable(ParentSymTab);
+ if (!SymTab) SymTab = new SymbolTable();
return SymTab;
}