diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-23 06:03:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-23 06:03:38 +0000 |
commit | 397f4560780d34da0bd1e4c9b9101c6f0774e8ff (patch) | |
tree | d7e42a138f6f8b54e1a831aff3c73c653ee77784 /include/llvm/Support | |
parent | 8787732253b90d2d933e3a04c8cc32ca7b486765 (diff) | |
download | external_llvm-397f4560780d34da0bd1e4c9b9101c6f0774e8ff.zip external_llvm-397f4560780d34da0bd1e4c9b9101c6f0774e8ff.tar.gz external_llvm-397f4560780d34da0bd1e4c9b9101c6f0774e8ff.tar.bz2 |
Change Pass::print to take a raw ostream instead of std::ostream,
update all code that this affects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79830 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/ConstantRange.h | 2 | ||||
-rw-r--r-- | include/llvm/Support/PassNameParser.h | 2 | ||||
-rw-r--r-- | include/llvm/Support/raw_ostream.h | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/Support/ConstantRange.h b/include/llvm/Support/ConstantRange.h index 3b72b04..e9c8c7c 100644 --- a/include/llvm/Support/ConstantRange.h +++ b/include/llvm/Support/ConstantRange.h @@ -223,8 +223,6 @@ inline raw_ostream &operator<<(raw_ostream &OS, const ConstantRange &CR) { return OS; } -std::ostream &operator<<(std::ostream &OS, const ConstantRange &CR); - } // End llvm namespace #endif diff --git a/include/llvm/Support/PassNameParser.h b/include/llvm/Support/PassNameParser.h index a437e20..66ce3f2 100644 --- a/include/llvm/Support/PassNameParser.h +++ b/include/llvm/Support/PassNameParser.h @@ -66,7 +66,7 @@ public: virtual void passRegistered(const PassInfo *P) { if (ignorablePass(P) || !Opt) return; if (findOption(P->getPassArgument()) != getNumOptions()) { - cerr << "Two passes with the same argument (-" + errs() << "Two passes with the same argument (-" << P->getPassArgument() << ") attempted to be registered!\n"; llvm_unreachable(0); } diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h index d9d023c..c2252dc 100644 --- a/include/llvm/Support/raw_ostream.h +++ b/include/llvm/Support/raw_ostream.h @@ -196,7 +196,6 @@ public: raw_ostream &operator<<(const std::string &Str) { // Avoid the fast path, it would only increase code size for a marginal win. - write(Str.data(), Str.length()); return *this; } @@ -220,6 +219,7 @@ public: this->operator<<(ftostr(N)); return *this; } + /// write_hex - Output \arg N in hexadecimal, without any prefix or padding. raw_ostream &write_hex(unsigned long long N); |