summaryrefslogtreecommitdiff
path: root/lib/Analysis/IPA/FindUsedTypes.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-28 21:05:51 +0000
committerChris Lattner <sabre@nondot.org>2009-02-28 21:05:51 +0000
commitc287137ce7455c63be0075e0d5aba0bab4f125ea (patch)
treedac71886746d2c3f34cd1ca2ebadfbeb1b71865d /lib/Analysis/IPA/FindUsedTypes.cpp
parent534361e7e17b34c6ac043a2c8bea626a5e9f1657 (diff)
downloadllvm-c287137ce7455c63be0075e0d5aba0bab4f125ea.tar.gz
llvm-c287137ce7455c63be0075e0d5aba0bab4f125ea.tar.bz2
llvm-c287137ce7455c63be0075e0d5aba0bab4f125ea.tar.xz
Change WriteTypeSymbolic to not put a space out before types, also, remove
the old std::ostream version. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65720 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/FindUsedTypes.cpp')
-rw-r--r--lib/Analysis/IPA/FindUsedTypes.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Analysis/IPA/FindUsedTypes.cpp b/lib/Analysis/IPA/FindUsedTypes.cpp
index 88a180ae52..920ee37455 100644
--- a/lib/Analysis/IPA/FindUsedTypes.cpp
+++ b/lib/Analysis/IPA/FindUsedTypes.cpp
@@ -19,6 +19,7 @@
#include "llvm/Module.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/Support/InstIterator.h"
+#include "llvm/Support/raw_ostream.h"
using namespace llvm;
char FindUsedTypes::ID = 0;
@@ -91,11 +92,13 @@ bool FindUsedTypes::runOnModule(Module &m) {
// passed in, then the types are printed symbolically if possible, using the
// symbol table from the module.
//
-void FindUsedTypes::print(std::ostream &o, const Module *M) const {
- o << "Types in use by this module:\n";
+void FindUsedTypes::print(std::ostream &OS, const Module *M) const {
+ raw_os_ostream RO(OS);
+ RO << "Types in use by this module:\n";
for (std::set<const Type *>::const_iterator I = UsedTypes.begin(),
E = UsedTypes.end(); I != E; ++I) {
- WriteTypeSymbolic(o << " ", *I, M);
- o << "\n";
+ RO << " ";
+ WriteTypeSymbolic(RO, *I, M);
+ RO << '\n';
}
}