[llvm-commits] CVS: llvm/include/llvm/Module.h Function.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 25 10:58:12 PDT 2005
Changes in directory llvm/include/llvm:
Module.h updated: 1.63 -> 1.64
Function.h updated: 1.66 -> 1.67
---
Log message:
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.
---
Diffs of the changes: (+10 -12)
Function.h | 2 --
Module.h | 20 ++++++++++----------
2 files changed, 10 insertions(+), 12 deletions(-)
Index: llvm/include/llvm/Module.h
diff -u llvm/include/llvm/Module.h:1.63 llvm/include/llvm/Module.h:1.64
--- llvm/include/llvm/Module.h:1.63 Sat Oct 22 23:37:19 2005
+++ llvm/include/llvm/Module.h Tue Oct 25 12:58:00 2005
@@ -52,17 +52,15 @@
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 @@
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; }
Index: llvm/include/llvm/Function.h
diff -u llvm/include/llvm/Function.h:1.66 llvm/include/llvm/Function.h:1.67
--- llvm/include/llvm/Function.h:1.66 Sun May 15 20:49:12 2005
+++ llvm/include/llvm/Function.h Tue Oct 25 12:58:00 2005
@@ -57,8 +57,6 @@
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!
More information about the llvm-commits
mailing list