From 74a4aaa5ce9d33fd24a8881e5bc1a3531887eb6b Mon Sep 17 00:00:00 2001 From: Ben Langmuir Date: Fri, 16 May 2014 01:38:59 +0000 Subject: Switch another write_escaped to yaml::escape I missed one in r206443. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208941 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/libclang/BuildSystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/libclang') diff --git a/tools/libclang/BuildSystem.cpp b/tools/libclang/BuildSystem.cpp index c9d3c55327..e5caa5447b 100644 --- a/tools/libclang/BuildSystem.cpp +++ b/tools/libclang/BuildSystem.cpp @@ -115,10 +115,10 @@ private: OS.indent(Indent) << "{\n"; Indent += 2; OS.indent(Indent) << "'type': 'directory',\n"; - OS.indent(Indent) << "'name': \""; StringRef DirName = containedPart(ParentPath, path::parent_path(Entry.VPath)); - OS.write_escaped(DirName) << "\",\n"; + OS.indent(Indent) + << "'name': \"" << llvm::yaml::escape(DirName) << "\",\n"; OS.indent(Indent) << "'contents': [\n"; Entries = printContents(Entries, Indent + 2); OS.indent(Indent) << "]\n"; -- cgit v1.2.3