diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2019-07-22 10:02:09 +0000 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2019-07-22 10:02:09 +0000 |
| commit | f94668e3360e5c32997bfd9be188750b3eb85769 (patch) | |
| tree | 0800af375aef09adb57c64666b492a71e1385d3d /lldb/utils/TableGen | |
| parent | 0a42fe70a566f22599e04a6f1344ca2dc5565e17 (diff) | |
| download | bcm5719-llvm-f94668e3360e5c32997bfd9be188750b3eb85769.tar.gz bcm5719-llvm-f94668e3360e5c32997bfd9be188750b3eb85769.zip | |
[lldb][NFC] Tablegenify breakpoint
llvm-svn: 366673
Diffstat (limited to 'lldb/utils/TableGen')
| -rw-r--r-- | lldb/utils/TableGen/LLDBOptionDefEmitter.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp b/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp index 4e62197d398..74e420ebb83 100644 --- a/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp +++ b/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp @@ -111,9 +111,11 @@ static void emitOption(Record *Option, raw_ostream &OS) { OS << ", "; // Add the description if there is any. - if (auto D = Option->getValue("Description")) - OS << D->getValue()->getAsString(); - else + if (auto D = Option->getValue("Description")) { + OS << "\""; + llvm::printEscapedString(D->getValue()->getAsUnquotedString(), OS); + OS << "\""; + } else OS << "\"\""; OS << "},\n"; } |

