summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/BuildSystem.cpp
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
commit5bf828dd34ab8c2c2c0df398c03dfe4f85525a9f (patch)
tree2f7d4e8d7db5861ad7c92ee20a3daf414eb9225f /clang/tools/libclang/BuildSystem.cpp
parent084398857a76bce3c03381438ba545e3c4aa412f (diff)
downloadbcm5719-llvm-5bf828dd34ab8c2c2c0df398c03dfe4f85525a9f.tar.gz
bcm5719-llvm-5bf828dd34ab8c2c2c0df398c03dfe4f85525a9f.zip
Switch another write_escaped to yaml::escape
I missed one in r206443. llvm-svn: 208941
Diffstat (limited to 'clang/tools/libclang/BuildSystem.cpp')
-rw-r--r--clang/tools/libclang/BuildSystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/libclang/BuildSystem.cpp b/clang/tools/libclang/BuildSystem.cpp
index c9d3c553273..e5caa5447ba 100644
--- a/clang/tools/libclang/BuildSystem.cpp
+++ b/clang/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";
OpenPOWER on IntegriCloud