summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBen Langmuir <blangmuir@apple.com>2014-05-16 01:38:59 +0000
committerBen Langmuir <blangmuir@apple.com>2014-05-16 01:38:59 +0000
commit74a4aaa5ce9d33fd24a8881e5bc1a3531887eb6b (patch)
treedfe8451008da7776123a1769572a1d830cc445f6 /tools
parenteaad5be64467dbb0e056b4f8b7a27ec76e6e4262 (diff)
downloadclang-74a4aaa5ce9d33fd24a8881e5bc1a3531887eb6b.tar.gz
clang-74a4aaa5ce9d33fd24a8881e5bc1a3531887eb6b.tar.bz2
clang-74a4aaa5ce9d33fd24a8881e5bc1a3531887eb6b.tar.xz
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
Diffstat (limited to 'tools')
-rw-r--r--tools/libclang/BuildSystem.cpp4
1 files changed, 2 insertions, 2 deletions
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";