[llvm-commits] CVS: llvm/include/llvm/Module.h
Reid Spencer
reid at x10sys.com
Sat Feb 3 16:41:06 PST 2007
Changes in directory llvm/include/llvm:
Module.h updated: 1.80 -> 1.81
---
Log message:
For PR1163: http://llvm.org/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.
---
Diffs of the changes: (+3 -4)
Module.h | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
Index: llvm/include/llvm/Module.h
diff -u llvm/include/llvm/Module.h:1.80 llvm/include/llvm/Module.h:1.81
--- llvm/include/llvm/Module.h:1.80 Fri Jan 26 02:07:01 2007
+++ llvm/include/llvm/Module.h Sat Feb 3 18:40:41 2007
@@ -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 @@
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 @@
/// @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; }
More information about the llvm-commits
mailing list