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 /include/llvm/Module.h | |
parent | 7afd3e1599222dc691cca9e601800878c8546663 (diff) |
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/Module.h')
-rw-r--r-- | include/llvm/Module.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h index 2564ddc5da..9d0b2b62f2 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -31,21 +31,18 @@ template<> struct ilist_traits<Function> // createSentinel is used to create a node that marks the end of the list. static Function *createSentinel(); static void destroySentinel(Function *F) { delete F; } - static inline ValueSymbolTable *getSymTab(Module *M); }; template<> struct ilist_traits<GlobalVariable> : public SymbolTableListTraits<GlobalVariable, Module> { // createSentinel is used to create a node that marks the end of the list. static GlobalVariable *createSentinel(); static void destroySentinel(GlobalVariable *GV) { delete GV; } - static inline ValueSymbolTable *getSymTab(Module *M); }; template<> struct ilist_traits<GlobalAlias> : public SymbolTableListTraits<GlobalAlias, Module> { // createSentinel is used to create a node that marks the end of the list. static GlobalAlias *createSentinel(); static void destroySentinel(GlobalAlias *GA) { delete GA; } - static inline ValueSymbolTable *getSymTab(Module *M); }; /// A Module instance is used to store all the information related to an @@ -409,22 +406,6 @@ inline raw_ostream &operator<<(raw_ostream &O, const Module &M) { M.print(O, 0); return O; } - - -inline ValueSymbolTable * -ilist_traits<Function>::getSymTab(Module *M) { - return M ? &M->getValueSymbolTable() : 0; -} - -inline ValueSymbolTable * -ilist_traits<GlobalVariable>::getSymTab(Module *M) { - return M ? &M->getValueSymbolTable() : 0; -} - -inline ValueSymbolTable * -ilist_traits<GlobalAlias>::getSymTab(Module *M) { - return M ? &M->getValueSymbolTable() : 0; -} } // End llvm namespace |