[llvm-commits] [123742] Quote PCH patch in preprocessed output.
dpatel at apple.com
dpatel at apple.com
Mon Feb 12 09:41:51 PST 2007
Revision: 123742
Author: dpatel
Date: 2007-02-12 09:41:51 -0800 (Mon, 12 Feb 2007)
Log Message:
-----------
Quote PCH patch in preprocessed output. Patch by Anton Korobeynikov.
Modified Paths:
--------------
apple-local/branches/llvm/gcc/c-ppoutput.c
Modified: apple-local/branches/llvm/gcc/c-ppoutput.c
===================================================================
--- apple-local/branches/llvm/gcc/c-ppoutput.c 2007-02-12 09:32:08 UTC (rev 123741)
+++ apple-local/branches/llvm/gcc/c-ppoutput.c 2007-02-12 17:41:51 UTC (rev 123742)
@@ -21,6 +21,8 @@
#include "system.h"
#include "coretypes.h"
#include "tm.h"
+/* APPLE LOCAL LLVM */
+#include "toplev.h"
#include "cpplib.h"
#include "../libcpp/internal.h"
#include "tree.h"
@@ -435,6 +437,10 @@
{
c_common_read_pch (pfile, name, fd, orig_name);
- fprintf (print.outf, "#pragma GCC pch_preprocess \"%s\"\n", name);
+ /* APPLE LOCAL begin LLVM */
+ fprintf (print.outf, "#pragma GCC pch_preprocess ");
+ output_quoted_string (print.outf, name);
+ fprintf (print.outf, "\n");
+ /* APPLE LOCAL end LLVM */
print.src_line++;
}
More information about the llvm-commits
mailing list