summaryrefslogtreecommitdiff
path: root/include/llvm/BasicBlock.h
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2009-03-07 12:33:24 +0000
committerGabor Greif <ggreif@gmail.com>2009-03-07 12:33:24 +0000
commit0dd2a6a89f49438b239638ab147ac5746d6c32c3 (patch)
treed56d4d2f8f90f2b2ae6248e18631cc6896968f12 /include/llvm/BasicBlock.h
parent7afd3e1599222dc691cca9e601800878c8546663 (diff)
downloadllvm-0dd2a6a89f49438b239638ab147ac5746d6c32c3.tar.gz
llvm-0dd2a6a89f49438b239638ab147ac5746d6c32c3.tar.bz2
llvm-0dd2a6a89f49438b239638ab147ac5746d6c32c3.tar.xz
simplify the way how traits get hold of the symbol table
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66336 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/BasicBlock.h')
-rw-r--r--include/llvm/BasicBlock.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h
index 0de71008e7..072f6152ea 100644
--- a/include/llvm/BasicBlock.h
+++ b/include/llvm/BasicBlock.h
@@ -45,8 +45,6 @@ template<> struct ilist_traits<Instruction>
Instruction *provideInitialHead() const { return createSentinel(); }
Instruction *ensureHead(Instruction*) const { return createSentinel(); }
static void noteHead(Instruction*, Instruction*) {}
-
- static ValueSymbolTable *getSymTab(BasicBlock *ItemParent);
private:
mutable ilist_node<Instruction> Sentinel;
};
@@ -184,10 +182,15 @@ public:
///
const InstListType &getInstList() const { return InstList; }
InstListType &getInstList() { return InstList; }
+
+ /// getSublistAccess() - returns pointer to member of instruction list
static iplist<Instruction> BasicBlock::*getSublistAccess(Instruction*) {
return &BasicBlock::InstList;
}
+ /// getValueSymbolTable() - returns pointer to symbol table (if any)
+ ValueSymbolTable *getValueSymbolTable();
+
/// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const BasicBlock *) { return true; }
static inline bool classof(const Value *V) {