1 //===-- llvm/Module.h - C++ class to represent a VM module -------*- C++ -*--=//
3 // This file contains the declarations for the Module class that is used to
4 // maintain all the information related to a VM module.
6 //===----------------------------------------------------------------------===//
11 #include "llvm/SymTabValue.h"
14 class Module : public SymTabValue {
16 typedef ValueHolder<Method, Module> MethodListType;
18 MethodListType MethodList; // The Methods
24 inline const MethodListType &getMethodList() const { return MethodList; }
25 inline MethodListType &getMethodList() { return MethodList; }
27 // dropAllReferences() - This function causes all the subinstructions to "let
28 // go" of all references that they are maintaining. This allows one to
29 // 'delete' a whole class at a time, even though there may be circular
30 // references... first all references are dropped, and all use counts go to
31 // zero. Then everything is delete'd for real. Note that no operations are
32 // valid on an object that has "dropped all references", except operator
35 void dropAllReferences();