diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-09-27 18:33:47 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-09-27 18:33:47 +0000 |
commit | d3c1661593e246f9cd25dc9da27e54b0a61ffe0d (patch) | |
tree | c60127cfabb4eff5807fbc3a669a3b218567fa23 /examples | |
parent | 5f0bfc522266f3319c4a6262b016a552de058c7f (diff) |
Fix examples for r140478. PR11021.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140618 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r-- | examples/PrintFunctionNames/PrintFunctionNames.cpp | 4 | ||||
-rw-r--r-- | 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<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); |