mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +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::const_iterator const_arg_iterator;
|
||||
typedef arg_iterator aiterator; // legacy, deprecated
|
||||
typedef const_arg_iterator const_aiterator; // legacy, deprecated
|
||||
|
||||
private:
|
||||
// Important things that make up a function!
|
||||
|
@ -52,17 +52,15 @@ public:
|
||||
typedef iplist<Function> FunctionListType;
|
||||
typedef SetVector<std::string> LibraryListType;
|
||||
|
||||
// Global Variable iterators...
|
||||
typedef GlobalListType::iterator global_iterator;
|
||||
typedef GlobalListType::const_iterator const_global_iterator;
|
||||
typedef global_iterator giterator; // these are legacy, deprecated
|
||||
typedef const_global_iterator const_giterator;
|
||||
// Global Variable iterators.
|
||||
typedef GlobalListType::iterator global_iterator;
|
||||
typedef GlobalListType::const_iterator const_global_iterator;
|
||||
|
||||
// Function iterators...
|
||||
// Function iterators.
|
||||
typedef FunctionListType::iterator iterator;
|
||||
typedef FunctionListType::const_iterator const_iterator;
|
||||
|
||||
// Library list iterators
|
||||
// Library list iterators.
|
||||
typedef LibraryListType::const_iterator lib_iterator;
|
||||
|
||||
enum Endianness { AnyEndianness, LittleEndian, BigEndian };
|
||||
@ -87,9 +85,11 @@ public:
|
||||
Module(const std::string &ModuleID);
|
||||
~Module();
|
||||
|
||||
const std::string& getModuleIdentifier() const { return ModuleID; }
|
||||
const std::string& getTargetTriple() const { return TargetTriple; }
|
||||
void setTargetTriple(const std::string& T) { TargetTriple = T; }
|
||||
const std::string &getModuleIdentifier() const { return ModuleID; }
|
||||
void setModuleIdentifier(const std::string &ID) { ModuleID = ID; }
|
||||
|
||||
const std::string &getTargetTriple() const { return TargetTriple; }
|
||||
void setTargetTriple(const std::string &T) { TargetTriple = T; }
|
||||
|
||||
/// Target endian information...
|
||||
Endianness getEndianness() const { return Endian; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user