diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-28 21:05:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-28 21:05:51 +0000 |
commit | d131008b4e304d5963347e60eaaca8a8270e1ff5 (patch) | |
tree | dac71886746d2c3f34cd1ca2ebadfbeb1b71865d /lib/Analysis/IPA | |
parent | dd220e63dfc62d40e7db791a95ffcf4374bc541e (diff) | |
download | external_llvm-d131008b4e304d5963347e60eaaca8a8270e1ff5.zip external_llvm-d131008b4e304d5963347e60eaaca8a8270e1ff5.tar.gz external_llvm-d131008b4e304d5963347e60eaaca8a8270e1ff5.tar.bz2 |
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')
-rw-r--r-- | lib/Analysis/IPA/FindUsedTypes.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Analysis/IPA/FindUsedTypes.cpp b/lib/Analysis/IPA/FindUsedTypes.cpp index 88a180a..920ee37 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'; } } |