diff options
author | Dan Gohman <gohman@apple.com> | 2010-02-14 02:48:58 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-02-14 02:48:58 +0000 |
commit | 0402577f3888889afb7a2bd18399987daefdecbe (patch) | |
tree | 53b831841cb889c911fa0185eeb710dabea5c008 /lib/Analysis | |
parent | 9269926bfb713e92e328e9578c6d8826c68dcb9d (diff) | |
download | external_llvm-0402577f3888889afb7a2bd18399987daefdecbe.zip external_llvm-0402577f3888889afb7a2bd18399987daefdecbe.tar.gz external_llvm-0402577f3888889afb7a2bd18399987daefdecbe.tar.bz2 |
Simplify this code; no need for a custom subclass if it doesn't need
to override anything from the parent class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96150 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/IVUsers.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/Analysis/IVUsers.cpp b/lib/Analysis/IVUsers.cpp index f6d53da..4ce6868 100644 --- a/lib/Analysis/IVUsers.cpp +++ b/lib/Analysis/IVUsers.cpp @@ -322,13 +322,6 @@ const SCEV *IVUsers::getCanonicalExpr(const IVStrideUse &U) const { 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 @@ void IVUsers::print(raw_ostream &OS, const Module *M) const { } 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 << " "; |