diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-04 00:40:42 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-04 00:40:42 +0000 |
commit | 6734b57d1bcd743491b627979f7801f94c97a970 (patch) | |
tree | ae542628ae9741a7ad07e3483ff7c0952cae6645 /include/llvm/Module.h | |
parent | 5fcaf3ed141a3f0246e41f45077dbb7d7d0b11d3 (diff) |
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
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r-- | include/llvm/Module.h | 7 |
1 files changed, 3 insertions, 4 deletions
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<Function> FunctionListType; /// The type for the list of dependent libraries. - typedef SetVector<std::string> LibraryListType; + typedef std::vector<std::string> 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; } |