mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-18 12:25:47 +00:00
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
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
Reference in New Issue
Block a user