diff options
author | Gabor Greif <ggreif@gmail.com> | 2009-03-07 12:33:24 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2009-03-07 12:33:24 +0000 |
commit | 0dd2a6a89f49438b239638ab147ac5746d6c32c3 (patch) | |
tree | d56d4d2f8f90f2b2ae6248e18631cc6896968f12 /lib/VMCore | |
parent | 7afd3e1599222dc691cca9e601800878c8546663 (diff) | |
download | external_llvm-0dd2a6a89f49438b239638ab147ac5746d6c32c3.zip external_llvm-0dd2a6a89f49438b239638ab147ac5746d6c32c3.tar.gz external_llvm-0dd2a6a89f49438b239638ab147ac5746d6c32c3.tar.bz2 |
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 'lib/VMCore')
-rw-r--r-- | lib/VMCore/BasicBlock.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp index f682231..3065766 100644 --- a/lib/VMCore/BasicBlock.cpp +++ b/lib/VMCore/BasicBlock.cpp @@ -23,11 +23,9 @@ #include <algorithm> using namespace llvm; -inline ValueSymbolTable * -ilist_traits<Instruction>::getSymTab(BasicBlock *BB) { - if (BB) - if (Function *F = BB->getParent()) - return &F->getValueSymbolTable(); +ValueSymbolTable *BasicBlock::getValueSymbolTable() { + if (Function *F = getParent()) + return &F->getValueSymbolTable(); return 0; } |