From d3c1661593e246f9cd25dc9da27e54b0a61ffe0d Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Tue, 27 Sep 2011 18:33:47 +0000 Subject: [PATCH] Fix examples for r140478. PR11021. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140618 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/PrintFunctionNames/PrintFunctionNames.cpp | 4 ++-- examples/clang-interpreter/main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/PrintFunctionNames/PrintFunctionNames.cpp b/examples/PrintFunctionNames/PrintFunctionNames.cpp index cc138f56db..fde60955aa 100644 --- a/examples/PrintFunctionNames/PrintFunctionNames.cpp +++ b/examples/PrintFunctionNames/PrintFunctionNames.cpp @@ -45,9 +45,9 @@ protected: // Example error handling. if (args[i] == "-an-error") { - Diagnostic &D = CI.getDiagnostics(); + DiagnosticsEngine &D = CI.getDiagnostics(); unsigned DiagID = D.getCustomDiagID( - Diagnostic::Error, "invalid argument '" + args[i] + "'"); + DiagnosticsEngine::Error, "invalid argument '" + args[i] + "'"); D.Report(DiagID); return false; } diff --git a/examples/clang-interpreter/main.cpp b/examples/clang-interpreter/main.cpp index 8dfe4c9ea2..8eca4454df 100644 --- a/examples/clang-interpreter/main.cpp +++ b/examples/clang-interpreter/main.cpp @@ -74,7 +74,7 @@ int main(int argc, const char **argv, char * const *envp) { new TextDiagnosticPrinter(llvm::errs(), DiagnosticOptions()); llvm::IntrusiveRefCntPtr DiagID(new DiagnosticIDs()); - Diagnostic Diags(DiagID, DiagClient); + DiagnosticsEngine Diags(DiagID, DiagClient); Driver TheDriver(Path.str(), llvm::sys::getHostTriple(), "a.out", /*IsProduction=*/false, /*CXXIsProduction=*/false, Diags); -- 2.40.0