[cfe-commits] r112181 - /cfe/trunk/examples/clang-interpreter/main.cpp
Benjamin Kramer
benny.kra at googlemail.com
Thu Aug 26 06:48:56 PDT 2010
Author: d0k
Date: Thu Aug 26 08:48:56 2010
New Revision: 112181
URL: http://llvm.org/viewvc/llvm-project?rev=112181&view=rev
Log:
Update clang-interpreter for recent DiagnosticClient ownership changes.
Modified:
cfe/trunk/examples/clang-interpreter/main.cpp
Modified: cfe/trunk/examples/clang-interpreter/main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/clang-interpreter/main.cpp?rev=112181&r1=112180&r2=112181&view=diff
==============================================================================
--- cfe/trunk/examples/clang-interpreter/main.cpp (original)
+++ cfe/trunk/examples/clang-interpreter/main.cpp Thu Aug 26 08:48:56 2010
@@ -66,9 +66,10 @@
int main(int argc, const char **argv, char * const *envp) {
void *MainAddr = (void*) (intptr_t) GetExecutablePath;
llvm::sys::Path Path = GetExecutablePath(argv[0]);
- TextDiagnosticPrinter DiagClient(llvm::errs(), DiagnosticOptions());
+ TextDiagnosticPrinter *DiagClient =
+ new TextDiagnosticPrinter(llvm::errs(), DiagnosticOptions());
- Diagnostic Diags(&DiagClient);
+ Diagnostic Diags(DiagClient);
Driver TheDriver(Path.str(), llvm::sys::getHostTriple(),
"a.out", /*IsProduction=*/false, /*CXXIsProduction=*/false,
Diags);
More information about the cfe-commits
mailing list