aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2019-01-25 16:59:06 +0000
committerFlorian Hahn <flo@fhahn.com>2019-01-25 16:59:06 +0000
commitca95ee5e11ad7e5fdd2d41f463a6d790cf1249ed (patch)
treea63b33373d17717224e84c4fa7dd70e822ae62dd /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent4db70d9695e4c863329ee3347b6eeb1d13eb7aa1 (diff)
downloadllvm-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