aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/NestedNameSpecifier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AST/NestedNameSpecifier.cpp')
-rw-r--r--lib/AST/NestedNameSpecifier.cpp14
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());
}