diff options
author | Florian Hahn <flo@fhahn.com> | 2019-01-25 16:59:06 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2019-01-25 16:59:06 +0000 |
commit | ca95ee5e11ad7e5fdd2d41f463a6d790cf1249ed (patch) | |
tree | a63b33373d17717224e84c4fa7dd70e822ae62dd /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 4db70d9695e4c863329ee3347b6eeb1d13eb7aa1 (diff) | |
download | llvm-ca95ee5e11ad7e5fdd2d41f463a6d790cf1249ed.zip llvm-ca95ee5e11ad7e5fdd2d41f463a6d790cf1249ed.tar.gz llvm-ca95ee5e11ad7e5fdd2d41f463a6d790cf1249ed.tar.bz2 |
[DiagnosticInfo] Add support for preserving newlines in remark arguments.
This patch adds a new type StringBlockVal which can be used to emit a
YAML block scalar, which preserves newlines in a multiline string. It
also updates MappingTraits<DiagnosticInfoOptimizationBase::Argument> to
use it for argument values with more than a single newline.
This is helpful for remarks that want to display more in-depth
information in a more structured way.
Reviewers: thegameg, anemet
Reviewed By: anemet
Subscribers: hfinkel, hiraditya, llvm-commits
Differential Revision: https://reviews.llvm.org/D57159
llvm-svn: 352216
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions