[llvm-commits] CVS: llvm/include/llvm/Function.h Module.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 14 21:14:00 PST 2005
Changes in directory llvm/include/llvm:
Function.h updated: 1.62 -> 1.63
Module.h updated: 1.59 -> 1.60
---
Log message:
remove a whole bunch of dead methods. Noone should use reverse iterators anyway.
---
Diffs of the changes: (+0 -66)
Function.h | 29 -----------------------------
Module.h | 37 -------------------------------------
2 files changed, 66 deletions(-)
Index: llvm/include/llvm/Function.h
diff -u llvm/include/llvm/Function.h:1.62 llvm/include/llvm/Function.h:1.63
--- llvm/include/llvm/Function.h:1.62 Mon Mar 14 17:49:40 2005
+++ llvm/include/llvm/Function.h Mon Mar 14 23:13:47 2005
@@ -54,17 +54,11 @@
// BasicBlock iterators...
typedef BasicBlockListType::iterator iterator;
typedef BasicBlockListType::const_iterator const_iterator;
- typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
- typedef std::reverse_iterator<iterator> reverse_iterator;
typedef ArgumentListType::iterator arg_iterator;
typedef ArgumentListType::const_iterator const_arg_iterator;
- typedef std::reverse_iterator<const_arg_iterator> const_reverse_arg_iterator;
- typedef std::reverse_iterator<arg_iterator> reverse_arg_iterator;
typedef arg_iterator aiterator; // legacy, deprecated
typedef const_arg_iterator const_aiterator; // legacy, deprecated
- typedef const_reverse_arg_iterator const_reverse_aiterator; // legacy, deprecated
- typedef reverse_arg_iterator reverse_aiterator; // legacy, deprecated
private:
// Important things that make up a function!
@@ -176,11 +170,6 @@
iterator end () { return BasicBlocks.end(); }
const_iterator end () const { return BasicBlocks.end(); }
- reverse_iterator rbegin() { return BasicBlocks.rbegin(); }
- const_reverse_iterator rbegin() const { return BasicBlocks.rbegin(); }
- reverse_iterator rend () { return BasicBlocks.rend(); }
- const_reverse_iterator rend () const { return BasicBlocks.rend(); }
-
size_t size() const { return BasicBlocks.size(); }
bool empty() const { return BasicBlocks.empty(); }
const BasicBlock &front() const { return BasicBlocks.front(); }
@@ -196,17 +185,8 @@
arg_iterator arg_end () { return ArgumentList.end(); }
const_arg_iterator arg_end () const { return ArgumentList.end(); }
- reverse_arg_iterator arg_rbegin() { return ArgumentList.rbegin(); }
- const_reverse_arg_iterator arg_rbegin() const { return ArgumentList.rbegin(); }
- reverse_arg_iterator arg_rend () { return ArgumentList.rend(); }
- const_reverse_arg_iterator arg_rend () const { return ArgumentList.rend(); }
-
size_t arg_size () const { return ArgumentList.size(); }
bool arg_empty() const { return ArgumentList.empty(); }
- const Argument &arg_front() const { return ArgumentList.front(); }
- Argument &arg_front() { return ArgumentList.front(); }
- const Argument &arg_back () const { return ArgumentList.back(); }
- Argument &arg_back () { return ArgumentList.back(); }
//===--------------------------------------------------------------------===//
// Argument iterator forwarding functions (legacy, deprecated, will be removed)
@@ -216,17 +196,8 @@
arg_iterator aend () { return ArgumentList.end(); }
const_arg_iterator aend () const { return ArgumentList.end(); }
- reverse_arg_iterator arbegin() { return ArgumentList.rbegin(); }
- const_reverse_arg_iterator arbegin() const { return ArgumentList.rbegin(); }
- reverse_arg_iterator arend () { return ArgumentList.rend(); }
- const_reverse_arg_iterator arend () const { return ArgumentList.rend(); }
-
size_t asize() const { return ArgumentList.size(); }
bool aempty() const { return ArgumentList.empty(); }
- const Argument &afront() const { return ArgumentList.front(); }
- Argument &afront() { return ArgumentList.front(); }
- const Argument &aback() const { return ArgumentList.back(); }
- Argument &aback() { return ArgumentList.back(); }
virtual void print(std::ostream &OS) const { print(OS, 0); }
void print(std::ostream &OS, AssemblyAnnotationWriter *AAW) const;
Index: llvm/include/llvm/Module.h
diff -u llvm/include/llvm/Module.h:1.59 llvm/include/llvm/Module.h:1.60
--- llvm/include/llvm/Module.h:1.59 Mon Mar 14 17:49:40 2005
+++ llvm/include/llvm/Module.h Mon Mar 14 23:13:47 2005
@@ -54,18 +54,12 @@
// Global Variable iterators...
typedef GlobalListType::iterator global_iterator;
typedef GlobalListType::const_iterator const_global_iterator;
- typedef std::reverse_iterator<global_iterator> reverse_global_iterator;
- typedef std::reverse_iterator<const_global_iterator> const_reverse_global_iterator;
typedef global_iterator giterator; // these are legacy, deprecated
typedef const_global_iterator const_giterator;
- typedef reverse_global_iterator reverse_giterator;
- typedef const_reverse_global_iterator const_reverse_giterator;
// Function iterators...
typedef FunctionListType::iterator iterator;
typedef FunctionListType::const_iterator const_iterator;
- typedef std::reverse_iterator<iterator> reverse_iterator;
- typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
// Library list iterators
typedef LibraryListType::const_iterator lib_iterator;
@@ -196,18 +190,7 @@
inline const_global_iterator global_begin() const { return GlobalList.begin(); }
inline global_iterator global_end () { return GlobalList.end(); }
inline const_global_iterator global_end () const { return GlobalList.end(); }
-
- inline reverse_global_iterator global_rbegin() { return GlobalList.rbegin(); }
- inline const_reverse_global_iterator global_rbegin() const { return GlobalList.rbegin(); }
- inline reverse_global_iterator global_rend () { return GlobalList.rend(); }
- inline const_reverse_global_iterator global_rend () const { return GlobalList.rend(); }
-
- inline size_t global_size () const { return GlobalList.size(); }
inline bool global_empty() const { return GlobalList.empty(); }
- inline const GlobalVariable &global_front() const { return GlobalList.front(); }
- inline GlobalVariable &global_front() { return GlobalList.front(); }
- inline const GlobalVariable &global_back () const { return GlobalList.back(); }
- inline GlobalVariable &global_back () { return GlobalList.back(); }
//===--------------------------------------------------------------------===//
// Module iterator forwarding functions (legacy, deprecated, will be removed)
@@ -217,18 +200,7 @@
inline const_global_iterator gbegin() const { return GlobalList.begin(); }
inline global_iterator gend () { return GlobalList.end(); }
inline const_global_iterator gend () const { return GlobalList.end(); }
-
- inline reverse_global_iterator grbegin() { return GlobalList.rbegin(); }
- inline const_reverse_global_iterator grbegin() const { return GlobalList.rbegin(); }
- inline reverse_global_iterator grend () { return GlobalList.rend(); }
- inline const_reverse_global_iterator grend () const { return GlobalList.rend(); }
-
- inline size_t gsize() const { return GlobalList.size(); }
inline bool gempty() const { return GlobalList.empty(); }
- inline const GlobalVariable &gfront() const { return GlobalList.front(); }
- inline GlobalVariable &gfront() { return GlobalList.front(); }
- inline const GlobalVariable &gback() const { return GlobalList.back(); }
- inline GlobalVariable &gback() { return GlobalList.back(); }
// FunctionList interface
inline iterator begin() { return FunctionList.begin(); }
@@ -236,17 +208,8 @@
inline iterator end () { return FunctionList.end(); }
inline const_iterator end () const { return FunctionList.end(); }
- inline reverse_iterator rbegin() { return FunctionList.rbegin(); }
- inline const_reverse_iterator rbegin() const { return FunctionList.rbegin(); }
- inline reverse_iterator rend () { return FunctionList.rend(); }
- inline const_reverse_iterator rend () const { return FunctionList.rend(); }
-
inline size_t size() const { return FunctionList.size(); }
inline bool empty() const { return FunctionList.empty(); }
- inline const Function &front() const { return FunctionList.front(); }
- inline Function &front() { return FunctionList.front(); }
- inline const Function &back() const { return FunctionList.back(); }
- inline Function &back() { return FunctionList.back(); }
//===--------------------------------------------------------------------===//
// List of dependent library access functions
More information about the llvm-commits
mailing list