Make Module annotable. Reid has a bunch of code that depends on this, and
authorChris Lattner <sabre@nondot.org>
Mon, 1 Mar 2004 01:25:37 +0000 (01:25 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Mar 2004 01:25:37 +0000 (01:25 +0000)
we really don't win that much by eliminating this (not many Modules are
allocated), so it's not worth it.  When we can, we should revisit this in
the future.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12023 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Module.h

index ec92a513a07696147ae4457a06bce1192efcbf7e..bdd72e1c22293e9015e76559b13b4636b4306949 100644 (file)
@@ -43,7 +43,7 @@ template<> struct ilist_traits<GlobalVariable>
   static iplist<GlobalVariable> &getList(Module *M);
 };
 
-struct Module {
+struct Module : public Annotable {
   typedef iplist<GlobalVariable> GlobalListType;
   typedef iplist<Function> FunctionListType;