update_mir_test_checks: Improve the check for LLVM IR in MIR files
authorJustin Bogner <mail@justinbogner.com>
Tue, 23 Jan 2018 06:39:04 +0000 (06:39 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 23 Jan 2018 06:39:04 +0000 (06:39 +0000)
commiteaae305a09360758df44fb3d13f3ef9988bc1fab
tree94cabdb2ddb74b24419a59553797889682f3d011
parentcde18b4b197647a7c586cb0b7b65e11b65a3fef0
update_mir_test_checks: Improve the check for LLVM IR in MIR files

The LLVM IR section of a MIR document can start with "--- |" rather
than just "---", because "|" is a sigil for a freeform document in
YAML. We need to handle this so that we don't try to add check lines
to the LLVM IR functions in a MIR file.

llvm-svn: 323178
llvm/utils/update_mir_test_checks.py