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 | b046ffb00232f7ae6c5dff53642bc14ec43fc8ef (patch) | |
tree | 4064f1dc47416204915db4b4e4981e23353e7181 /clang/lib/AST/NestedNameSpecifier.cpp | |
parent | a207254f94ad58980c6c2eacac7c38f192c3846b (diff) | |
download | bcm5719-llvm-b046ffb00232f7ae6c5dff53642bc14ec43fc8ef.tar.gz bcm5719-llvm-b046ffb00232f7ae6c5dff53642bc14ec43fc8ef.zip |
Some cleanup and renaming. No functionality change
llvm-svn: 68140
Diffstat (limited to 'clang/lib/AST/NestedNameSpecifier.cpp')
-rw-r--r-- | clang/lib/AST/NestedNameSpecifier.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/clang/lib/AST/NestedNameSpecifier.cpp b/clang/lib/AST/NestedNameSpecifier.cpp index 40efe2a1698..2db8c763431 100644 --- a/clang/lib/AST/NestedNameSpecifier.cpp +++ b/clang/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()); } |