From 0dd2a6a89f49438b239638ab147ac5746d6c32c3 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Sat, 7 Mar 2009 12:33:24 +0000 Subject: 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 --- include/llvm/Module.h | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'include/llvm/Module.h') 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 // 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 : public SymbolTableListTraits { // 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 : public SymbolTableListTraits { // 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::getSymTab(Module *M) { - return M ? &M->getValueSymbolTable() : 0; -} - -inline ValueSymbolTable * -ilist_traits::getSymTab(Module *M) { - return M ? &M->getValueSymbolTable() : 0; -} - -inline ValueSymbolTable * -ilist_traits::getSymTab(Module *M) { - return M ? &M->getValueSymbolTable() : 0; -} } // End llvm namespace -- cgit v1.2.3