X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FModule.h;h=e6303ac7752d2f6131dff709e00ae6b2bb7ff136;hb=2e522d05278a69cf75b41dcd4b358e46b5350425;hp=b9c98814f15947eae9bd00ab1bf6d93aecd57e0b;hpb=c827834d496568da936f6a8b48798a98956fc8af;p=oota-llvm.git diff --git a/include/llvm/Module.h b/include/llvm/Module.h index b9c98814f15..e6303ac7752 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -301,10 +301,6 @@ public: typedef DenseMap > NumeredTypesMapTy; - /// findUsedStructTypes - Walk the entire module and find all of the - /// struct types that are in use, returning them in a vector. - void findUsedStructTypes(std::vector &StructTypes) const; - /// getTypeByName - Return the type with the specified name, or null if there /// is none by that name. StructType *getTypeByName(StringRef Name) const; @@ -497,6 +493,13 @@ public: static iplist Module::*getSublistAccess(GlobalAlias*) { return &Module::AliasList; } + /// Get the Module's list of named metadata (constant). + const NamedMDListType &getNamedMDList() const { return NamedMDList; } + /// Get the Module's list of named metadata. + NamedMDListType &getNamedMDList() { return NamedMDList; } + static ilist Module::*getSublistAccess(NamedMDNode*) { + return &Module::NamedMDList; + } /// Get the symbol table of global variable and function identifiers const ValueSymbolTable &getValueSymbolTable() const { return *ValSymTab; } /// Get the Module's symbol table of global variable and function identifiers.