[llvm-commits] [llvm] r96150 - /llvm/trunk/lib/Analysis/IVUsers.cpp
Dan Gohman
gohman at apple.com
Sat Feb 13 18:48:58 PST 2010
Author: djg
Date: Sat Feb 13 20:48:58 2010
New Revision: 96150
URL: http://llvm.org/viewvc/llvm-project?rev=96150&view=rev
Log:
Simplify this code; no need for a custom subclass if it doesn't need
to override anything from the parent class.
Modified:
llvm/trunk/lib/Analysis/IVUsers.cpp
Modified: llvm/trunk/lib/Analysis/IVUsers.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/IVUsers.cpp?rev=96150&r1=96149&r2=96150&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/IVUsers.cpp (original)
+++ llvm/trunk/lib/Analysis/IVUsers.cpp Sat Feb 13 20:48:58 2010
@@ -322,13 +322,6 @@
return RetVal;
}
-namespace {
-
-// Suppress extraneous comments.
-class IVUsersAsmAnnotator : public AssemblyAnnotationWriter {};
-
-}
-
void IVUsers::print(raw_ostream &OS, const Module *M) const {
OS << "IV Users for loop ";
WriteAsOperand(OS, L->getHeader(), false);
@@ -338,7 +331,9 @@
}
OS << ":\n";
- IVUsersAsmAnnotator Annotator;
+ // Use a defualt AssemblyAnnotationWriter to suppress the default info
+ // comments, which aren't relevant here.
+ AssemblyAnnotationWriter Annotator;
for (ilist<IVStrideUse>::const_iterator UI = IVUses.begin(),
E = IVUses.end(); UI != E; ++UI) {
OS << " ";
More information about the llvm-commits
mailing list