diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-01 06:53:41 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-01 06:53:41 +0000 |
commit | 400aea6b9d4d0a33f4c6cae4cada7e54029fccc4 (patch) | |
tree | 274e25a9d0d9353b3a41a60b0636edbd73d22473 /lib/Expr/Parser.cpp | |
parent | 0f0b921714a32b51a1bbda1848a356bb4553f3d3 (diff) | |
download | klee-400aea6b9d4d0a33f4c6cae4cada7e54029fccc4.tar.gz |
Update for LLVM ostream changes.
- Includes patch by Michael Stone! git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@80665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Expr/Parser.cpp')
-rw-r--r-- | lib/Expr/Parser.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/Expr/Parser.cpp b/lib/Expr/Parser.cpp index 11fb8546..88729c09 100644 --- a/lib/Expr/Parser.cpp +++ b/lib/Expr/Parser.cpp @@ -18,7 +18,7 @@ #include "llvm/ADT/APInt.h" #include "llvm/Support/MemoryBuffer.h" -#include "llvm/Support/Streams.h" +#include "llvm/Support/raw_ostream.h" #include <cassert> #include <iostream> @@ -1523,9 +1523,9 @@ void ParserImpl::Error(const char *Message, const Token &At) { if (MaxErrors && NumErrors >= MaxErrors) return; - llvm::cerr << Filename - << ":" << At.line << ":" << At.column - << ": error: " << Message << "\n"; + std::cerr << Filename + << ":" << At.line << ":" << At.column + << ": error: " << Message << "\n"; // Skip carat diagnostics on EOF token. if (At.kind == Token::EndOfFile) @@ -1545,18 +1545,18 @@ void ParserImpl::Error(const char *Message, const Token &At) { ++LineEnd; // Show the line. - llvm::cerr << std::string(LineBegin, LineEnd) << "\n"; + std::cerr << std::string(LineBegin, LineEnd) << "\n"; // Show the caret or squiggly, making sure to print back spaces the // same. for (const char *S=LineBegin; S != At.start; ++S) - llvm::cerr << (isspace(*S) ? *S : ' '); + std::cerr << (isspace(*S) ? *S : ' '); if (At.length > 1) { for (unsigned i=0; i<At.length; ++i) - llvm::cerr << '~'; + std::cerr << '~'; } else - llvm::cerr << '^'; - llvm::cerr << '\n'; + std::cerr << '^'; + std::cerr << '\n'; } // AST API |