diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-01-14 16:44:48 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-01-14 16:44:48 +0000 |
commit | bdd30c26bd93a89ae0fe125e9aae8b7c05e55324 (patch) | |
tree | c35bbc5756498b511aa905c7f3bce4bf718afcaa /Driver/PrintParserCallbacks.cpp | |
parent | aa58f00ebba5f14955001736b7aea20bb5bd91e6 (diff) |
Change uses of std::cerr/std::cout to llvm::Lcerr/llvm::cout, and remove
#include<iostream>.
Patch provided by Sam Bishop.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/PrintParserCallbacks.cpp')
-rw-r--r-- | Driver/PrintParserCallbacks.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Driver/PrintParserCallbacks.cpp b/Driver/PrintParserCallbacks.cpp index d6f4d14136..9c67f83aa1 100644 --- a/Driver/PrintParserCallbacks.cpp +++ b/Driver/PrintParserCallbacks.cpp @@ -15,7 +15,7 @@ #include "clang.h" #include "clang/Parse/Action.h" #include "clang/Parse/DeclSpec.h" -#include <iostream> +#include "llvm/Support/Streams.h" using namespace clang; namespace { @@ -29,13 +29,13 @@ namespace { /// "int X = 4" or "typedef int foo". virtual DeclTy *ActOnDeclarator(Scope *S, Declarator &D, DeclTy *LastInGroup) { - std::cout << "ActOnDeclarator "; + llvm::cout << "ActOnDeclarator "; if (IdentifierInfo *II = D.getIdentifier()) { - std::cout << "'" << II->getName() << "'"; + llvm::cout << "'" << II->getName() << "'"; } else { - std::cout << "<anon>"; + llvm::cout << "<anon>"; } - std::cout << "\n"; + llvm::cout << "\n"; // Pass up to EmptyActions so that the symbol table is maintained right. return MinimalAction::ActOnDeclarator(S, D, LastInGroup); @@ -44,7 +44,7 @@ namespace { /// ActOnPopScope - This callback is called immediately before the specified /// scope is popped and deleted. virtual void ActOnPopScope(SourceLocation Loc, Scope *S) { - std::cout << "ActOnPopScope\n"; + llvm::cout << "ActOnPopScope\n"; // Pass up to EmptyActions so that the symbol table is maintained right. MinimalAction::ActOnPopScope(Loc, S); |