From 4cee8d8ffbdf355428c46dad34cbc4d2c70b6015 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 27 Jun 2001 23:41:11 +0000 Subject: Miscellaneous cleanups: * Convert post to pre-increment for for loops * Use generic programming more * Use new Value::cast* instructions * Use new Module, Method, & BasicBlock forwarding methods * Use new facilities in STLExtras.h * Use new Instruction::isPHINode() method llvm-svn: 96 --- llvm/tools/llvm-dis/llvm-dis.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/tools/llvm-dis/llvm-dis.cpp') diff --git a/llvm/tools/llvm-dis/llvm-dis.cpp b/llvm/tools/llvm-dis/llvm-dis.cpp index ed1b79e3c48..deaf3a28fd5 100644 --- a/llvm/tools/llvm-dis/llvm-dis.cpp +++ b/llvm/tools/llvm-dis/llvm-dis.cpp @@ -94,8 +94,7 @@ int main(int argc, char **argv) { // methods... more should definately be printed. It should be valid output // consumable by the assembler. // - for (Module::MethodListType::iterator I = C->getMethodList().begin(); - I != C->getMethodList().end(); I++) { + for (Module::iterator I = C->begin(), End = C->end(); I != End; ++I) { Method *M = *I; (*Out) << "-------------- Method: " << M->getName() << " -------------\n"; -- cgit v1.2.3