From 16ba91396a16f4f0e66ac1db37423a78f7dd3221 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 18 Nov 2008 04:56:44 +0000 Subject: Change the diagnostics interface to take an array of pointers to strings instead of array of strings. This reduces string copying in some not-very-important cases, but paves the way for future improvements. llvm-svn: 59494 --- clang/lib/Driver/TextDiagnosticBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Driver/TextDiagnosticBuffer.cpp') diff --git a/clang/lib/Driver/TextDiagnosticBuffer.cpp b/clang/lib/Driver/TextDiagnosticBuffer.cpp index 26ac879dd04..ef7ac6d408c 100644 --- a/clang/lib/Driver/TextDiagnosticBuffer.cpp +++ b/clang/lib/Driver/TextDiagnosticBuffer.cpp @@ -21,7 +21,7 @@ void TextDiagnosticBuffer::HandleDiagnostic(Diagnostic &Diags, Diagnostic::Level Level, FullSourceLoc Pos, diag::kind ID, - const std::string *Strs, + const std::string **Strs, unsigned NumStrs, const SourceRange *, unsigned) { -- cgit v1.2.3