[cfe-commits] r140618 - in /cfe/trunk/examples: PrintFunctionNames/PrintFunctionNames.cpp clang-interpreter/main.cpp
Eli Friedman
eli.friedman at gmail.com
Tue Sep 27 11:33:47 PDT 2011
Author: efriedma
Date: Tue Sep 27 13:33:47 2011
New Revision: 140618
URL: http://llvm.org/viewvc/llvm-project?rev=140618&view=rev
Log:
Fix examples for r140478. PR11021.
Modified:
cfe/trunk/examples/PrintFunctionNames/PrintFunctionNames.cpp
cfe/trunk/examples/clang-interpreter/main.cpp
Modified: cfe/trunk/examples/PrintFunctionNames/PrintFunctionNames.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/PrintFunctionNames/PrintFunctionNames.cpp?rev=140618&r1=140617&r2=140618&view=diff
==============================================================================
--- cfe/trunk/examples/PrintFunctionNames/PrintFunctionNames.cpp (original)
+++ cfe/trunk/examples/PrintFunctionNames/PrintFunctionNames.cpp Tue Sep 27 13:33:47 2011
@@ -45,9 +45,9 @@
// 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;
}
Modified: cfe/trunk/examples/clang-interpreter/main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/clang-interpreter/main.cpp?rev=140618&r1=140617&r2=140618&view=diff
==============================================================================
--- cfe/trunk/examples/clang-interpreter/main.cpp (original)
+++ cfe/trunk/examples/clang-interpreter/main.cpp Tue Sep 27 13:33:47 2011
@@ -74,7 +74,7 @@
new TextDiagnosticPrinter(llvm::errs(), DiagnosticOptions());
llvm::IntrusiveRefCntPtr<DiagnosticIDs> 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);
More information about the cfe-commits
mailing list