summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-02 23:03:10 +0000
committerChris Lattner <sabre@nondot.org>2010-09-02 23:03:10 +0000
commit831c8ec016e70030752ddd68390ac8d3a5148892 (patch)
tree05d24e1af0b3c35ab0e9afb6bd2eb20f4cebb69b
parenta660be7587f52d269135a54e2d485bf7a7bc9c50 (diff)
downloadllvm-831c8ec016e70030752ddd68390ac8d3a5148892.tar.gz
llvm-831c8ec016e70030752ddd68390ac8d3a5148892.tar.bz2
llvm-831c8ec016e70030752ddd68390ac8d3a5148892.tar.xz
stop forcing a noop AssemblyAnnotationWriter to silence #uses
comments, these don't happen anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112901 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/IVUsers.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Analysis/IVUsers.cpp b/lib/Analysis/IVUsers.cpp
index fd514336be..cdf667ad6e 100644
--- a/lib/Analysis/IVUsers.cpp
+++ b/lib/Analysis/IVUsers.cpp
@@ -21,7 +21,6 @@
#include "llvm/Analysis/Dominators.h"
#include "llvm/Analysis/LoopPass.h"
#include "llvm/Analysis/ScalarEvolutionExpressions.h"
-#include "llvm/Assembly/AsmAnnotationWriter.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
@@ -179,9 +178,6 @@ void IVUsers::print(raw_ostream &OS, const Module *M) const {
}
OS << ":\n";
- // Use a default 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 << " ";
@@ -195,7 +191,7 @@ void IVUsers::print(raw_ostream &OS, const Module *M) const {
OS << ")";
}
OS << " in ";
- UI->getUser()->print(OS, &Annotator);
+ UI->getUser()->print(OS);
OS << '\n';
}
}