summaryrefslogtreecommitdiffstats
path: root/lldb/utils
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-07-25 22:17:08 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-07-25 22:17:08 +0000
commit7296fac558764bc892400aae038db0f70e79cd74 (patch)
tree643b0c080338454cd5654aa74f024243aa373710 /lldb/utils
parent6caa8da072d600c97b10a486a1995a999a3672ea (diff)
downloadbcm5719-llvm-7296fac558764bc892400aae038db0f70e79cd74.tar.gz
bcm5719-llvm-7296fac558764bc892400aae038db0f70e79cd74.zip
[Tablegen] Fix issues caused by incorrect escaping.
The printEscapedString would escape newlines by their ASCII values instead of prefixing them with a `\`. Remove the escaping logic and escape the strings in the definition file. llvm-svn: 367065
Diffstat (limited to 'lldb/utils')
-rw-r--r--lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp b/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp
index d295cbb4e08..a41c2098c1e 100644
--- a/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp
+++ b/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp
@@ -82,7 +82,7 @@ static void emitProperty(Record *Property, raw_ostream &OS) {
if (hasDefaultStringValue) {
if (auto D = Property->getValue("DefaultStringValue")) {
OS << "\"";
- llvm::printEscapedString(D->getValue()->getAsUnquotedString(), OS);
+ OS << D->getValue()->getAsUnquotedString();
OS << "\"";
} else {
OS << "\"\"";
@@ -102,7 +102,7 @@ static void emitProperty(Record *Property, raw_ostream &OS) {
// Emit the property description.
if (auto D = Property->getValue("Description")) {
OS << "\"";
- llvm::printEscapedString(D->getValue()->getAsUnquotedString(), OS);
+ OS << D->getValue()->getAsUnquotedString();
OS << "\"";
} else {
OS << "\"\"";
OpenPOWER on IntegriCloud