Skip to content

Commit a1a1e93

Browse files
committed
remove deprecated methods
llvm-svn: 22076
1 parent 7caf6f6 commit a1a1e93

File tree

2 files changed

+5
-26
lines changed

2 files changed

+5
-26
lines changed

llvm/include/llvm/Function.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -195,17 +195,6 @@ class Function : public GlobalValue, public Annotable {
195195
size_t arg_size () const { return ArgumentList.size(); }
196196
bool arg_empty() const { return ArgumentList.empty(); }
197197

198-
//===--------------------------------------------------------------------===//
199-
// Argument iterator forwarding functions (legacy, deprecated, will be removed)
200-
//
201-
arg_iterator abegin() { return ArgumentList.begin(); }
202-
const_arg_iterator abegin() const { return ArgumentList.begin(); }
203-
arg_iterator aend () { return ArgumentList.end(); }
204-
const_arg_iterator aend () const { return ArgumentList.end(); }
205-
206-
size_t asize() const { return ArgumentList.size(); }
207-
bool aempty() const { return ArgumentList.empty(); }
208-
209198
virtual void print(std::ostream &OS) const { print(OS, 0); }
210199
void print(std::ostream &OS, AssemblyAnnotationWriter *AAW) const;
211200

llvm/include/llvm/Module.h

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -186,21 +186,11 @@ class Module {
186186
// Module iterator forwarding functions
187187
//
188188
// Globals list interface
189-
inline global_iterator global_begin() { return GlobalList.begin(); }
190-
inline const_global_iterator global_begin() const { return GlobalList.begin(); }
191-
inline global_iterator global_end () { return GlobalList.end(); }
192-
inline const_global_iterator global_end () const { return GlobalList.end(); }
193-
inline bool global_empty() const { return GlobalList.empty(); }
194-
195-
//===--------------------------------------------------------------------===//
196-
// Module iterator forwarding functions (legacy, deprecated, will be removed)
197-
//
198-
// Globals list interface
199-
inline global_iterator gbegin() { return GlobalList.begin(); }
200-
inline const_global_iterator gbegin() const { return GlobalList.begin(); }
201-
inline global_iterator gend () { return GlobalList.end(); }
202-
inline const_global_iterator gend () const { return GlobalList.end(); }
203-
inline bool gempty() const { return GlobalList.empty(); }
189+
global_iterator global_begin() { return GlobalList.begin(); }
190+
const_global_iterator global_begin() const { return GlobalList.begin(); }
191+
global_iterator global_end () { return GlobalList.end(); }
192+
const_global_iterator global_end () const { return GlobalList.end(); }
193+
bool global_empty() const { return GlobalList.empty(); }
204194

205195
// FunctionList interface
206196
inline iterator begin() { return FunctionList.begin(); }

0 commit comments

Comments
 (0)