mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-13 08:56:04 +00:00
Add a missing Module::setTargetTriple method.
Remove Function::aiterator and Module::giterator typedefs (and const versions) as they should have been removed when abegin/gbegin were removed. Thanks to alkis for bringing this to my attn. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23978 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0366fcb396
commit
304a564c1f
@ -57,8 +57,6 @@ public:
|
|||||||
|
|
||||||
typedef ArgumentListType::iterator arg_iterator;
|
typedef ArgumentListType::iterator arg_iterator;
|
||||||
typedef ArgumentListType::const_iterator const_arg_iterator;
|
typedef ArgumentListType::const_iterator const_arg_iterator;
|
||||||
typedef arg_iterator aiterator; // legacy, deprecated
|
|
||||||
typedef const_arg_iterator const_aiterator; // legacy, deprecated
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Important things that make up a function!
|
// Important things that make up a function!
|
||||||
|
@ -52,17 +52,15 @@ public:
|
|||||||
typedef iplist<Function> FunctionListType;
|
typedef iplist<Function> FunctionListType;
|
||||||
typedef SetVector<std::string> LibraryListType;
|
typedef SetVector<std::string> LibraryListType;
|
||||||
|
|
||||||
// Global Variable iterators...
|
// Global Variable iterators.
|
||||||
typedef GlobalListType::iterator global_iterator;
|
typedef GlobalListType::iterator global_iterator;
|
||||||
typedef GlobalListType::const_iterator const_global_iterator;
|
typedef GlobalListType::const_iterator const_global_iterator;
|
||||||
typedef global_iterator giterator; // these are legacy, deprecated
|
|
||||||
typedef const_global_iterator const_giterator;
|
|
||||||
|
|
||||||
// Function iterators...
|
// Function iterators.
|
||||||
typedef FunctionListType::iterator iterator;
|
typedef FunctionListType::iterator iterator;
|
||||||
typedef FunctionListType::const_iterator const_iterator;
|
typedef FunctionListType::const_iterator const_iterator;
|
||||||
|
|
||||||
// Library list iterators
|
// Library list iterators.
|
||||||
typedef LibraryListType::const_iterator lib_iterator;
|
typedef LibraryListType::const_iterator lib_iterator;
|
||||||
|
|
||||||
enum Endianness { AnyEndianness, LittleEndian, BigEndian };
|
enum Endianness { AnyEndianness, LittleEndian, BigEndian };
|
||||||
@ -87,9 +85,11 @@ public:
|
|||||||
Module(const std::string &ModuleID);
|
Module(const std::string &ModuleID);
|
||||||
~Module();
|
~Module();
|
||||||
|
|
||||||
const std::string& getModuleIdentifier() const { return ModuleID; }
|
const std::string &getModuleIdentifier() const { return ModuleID; }
|
||||||
const std::string& getTargetTriple() const { return TargetTriple; }
|
void setModuleIdentifier(const std::string &ID) { ModuleID = ID; }
|
||||||
void setTargetTriple(const std::string& T) { TargetTriple = T; }
|
|
||||||
|
const std::string &getTargetTriple() const { return TargetTriple; }
|
||||||
|
void setTargetTriple(const std::string &T) { TargetTriple = T; }
|
||||||
|
|
||||||
/// Target endian information...
|
/// Target endian information...
|
||||||
Endianness getEndianness() const { return Endian; }
|
Endianness getEndianness() const { return Endian; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user