diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-31 20:22:05 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-31 20:22:05 +0000 |
commit | 9bde77309fd2f9f7a53446e374472c48c81f5182 (patch) | |
tree | 6631e90570b280d2a97ff66702c487e8a7fee5d1 /lib/AST/NestedNameSpecifier.cpp | |
parent | c0d12e93ee244534147960334c095a6d6510d0ae (diff) |
Some cleanup and renaming. No functionality change
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68140 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/NestedNameSpecifier.cpp')
-rw-r--r-- | lib/AST/NestedNameSpecifier.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/AST/NestedNameSpecifier.cpp b/lib/AST/NestedNameSpecifier.cpp index 40efe2a169..2db8c76343 100644 --- a/lib/AST/NestedNameSpecifier.cpp +++ b/lib/AST/NestedNameSpecifier.cpp @@ -17,7 +17,6 @@ #include "clang/AST/Type.h" #include "llvm/Support/raw_ostream.h" #include <cassert> -#include <stdio.h> using namespace clang; @@ -105,9 +104,9 @@ bool NestedNameSpecifier::isDependent() const { /// \brief Print this nested name specifier to the given output /// stream. -void NestedNameSpecifier::Print(llvm::raw_ostream &OS) const { +void NestedNameSpecifier::print(llvm::raw_ostream &OS) const { if (Prefix) - Prefix->Print(OS); + Prefix->print(OS); switch (getKind()) { case Identifier: @@ -152,11 +151,6 @@ void NestedNameSpecifier::Destroy(ASTContext &Context) { Context.Deallocate((void *)this); } -void NestedNameSpecifier::Dump() { - std::string Result; - { - llvm::raw_string_ostream OS(Result); - Print(OS); - } - fprintf(stderr, "%s", Result.c_str()); +void NestedNameSpecifier::dump() { + print(llvm::errs()); } |