aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-28 04:56:59 +0000
committerChris Lattner <sabre@nondot.org>2002-04-28 04:56:59 +0000
commit02260eeabf294956f6d38e11e423b8d5e709af1b (patch)
tree860861d529ffc696221e5338273315c59c82621e
parent97c1e5020732ce644b729b358bc0c6e5f7325996 (diff)
downloadllvm-02260eeabf294956f6d38e11e423b8d5e709af1b.zip
llvm-02260eeabf294956f6d38e11e423b8d5e709af1b.tar.gz
llvm-02260eeabf294956f6d38e11e423b8d5e709af1b.tar.bz2
SymTabValue class incorporated into Function and Module classes.
llvm-svn: 2359
-rw-r--r--llvm/include/llvm/SymTabValue.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/llvm/include/llvm/SymTabValue.h b/llvm/include/llvm/SymTabValue.h
deleted file mode 100644
index 710dbc0..0000000
--- a/llvm/include/llvm/SymTabValue.h
+++ /dev/null
@@ -1,46 +0,0 @@
-//===-- llvm/SymTabValue.h - Implement SymbolTable Values --------*- C++ -*--=//
-//
-// This subclass of Value implements a def that has a symbol table for keeping
-// track of children. This is used by the ValueHolder template class...
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_SYMTAB_VALUE_H
-#define LLVM_SYMTAB_VALUE_H
-
-class SymbolTable;
-class Value;
-
-class SymTabValue {
-private:
- SymbolTable *SymTab, *ParentSymTab;
- Value *ValueParent;
-
-protected:
- void setParentSymTab(SymbolTable *ST);
-public:
- SymTabValue(Value *Parent);
- ~SymTabValue(); // Implemented in Value.cpp
-
- inline Value *getSTVParent() { return ValueParent; }
- inline const Value *getSTVParent() const { return ValueParent; }
-
- // hasSymbolTable() - Returns true if there is a symbol table allocated to
- // this object AND if there is at least one name in it!
- //
- bool hasSymbolTable() const;
-
- // CAUTION: The current symbol table may be null if there are no names (ie,
- // the symbol table is empty)
- //
- inline SymbolTable *getSymbolTable() { return SymTab; }
- inline const SymbolTable *getSymbolTable() const { return SymTab; }
-
- // getSymbolTableSure is guaranteed to not return a null pointer, because if
- // the method does not already have a symtab, one is created. Use this if
- // you intend to put something into the symbol table for the method.
- //
- SymbolTable *getSymbolTableSure(); // Implemented in Value.cpp
-};
-
-#endif