MIR Parser: Use source locations for MBB naming errors.
authorAlex Lorenz <arphaman@gmail.com>
Wed, 8 Jul 2015 20:22:20 +0000 (20:22 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 8 Jul 2015 20:22:20 +0000 (20:22 +0000)
commit31512fe6ce3b748e5ad5ebd3bd9a6b648621eb52
tree6026f3e3328445cecba019bb5341f22110e2dddc
parentea64a5110859d3f40721c16c8d888b96cc846eb2
MIR Parser: Use source locations for MBB naming errors.

This commit changes the type of the field 'Name' in the struct
'yaml::MachineBasicBlock' from 'std::string' to 'yaml::StringValue'. This change
allows the MIR parser to report errors related to the MBB name with the proper
source locations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241718 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MIRYamlMapping.h
lib/CodeGen/MIRParser/MIRParser.cpp
lib/CodeGen/MIRPrinter.cpp
test/CodeGen/MIR/machine-basic-block-unknown-name.mir