From 6734b57d1bcd743491b627979f7801f94c97a970 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 4 Feb 2007 00:40:42 +0000 Subject: For PR1163: Make the Module's dependent library use a std::vector instead of SetVector adjust #includes in .cpp files because SetVector.h is no longer included. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33855 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Module.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include/llvm/Module.h') diff --git a/include/llvm/Module.h b/include/llvm/Module.h index f5cb9f6a13..7470debcda 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -16,7 +16,6 @@ #include "llvm/Function.h" #include "llvm/GlobalVariable.h" -#include "llvm/ADT/SetVector.h" #include "llvm/Support/DataTypes.h" namespace llvm { @@ -63,7 +62,7 @@ public: typedef iplist FunctionListType; /// The type for the list of dependent libraries. - typedef SetVector LibraryListType; + typedef std::vector LibraryListType; /// The Global Variable iterator. typedef GlobalListType::iterator global_iterator; @@ -290,9 +289,9 @@ public: /// @brief Returns the number of items in the list of libraries. inline size_t lib_size() const { return LibraryList.size(); } /// @brief Add a library to the list of dependent libraries - inline void addLibrary(const std::string& Lib){ LibraryList.insert(Lib); } + void addLibrary(const std::string& Lib); /// @brief Remove a library from the list of dependent libraries - inline void removeLibrary(const std::string& Lib) { LibraryList.remove(Lib); } + void removeLibrary(const std::string& Lib); /// @brief Get all the libraries inline const LibraryListType& getLibraries() const { return LibraryList; } -- cgit v1.2.3