MIR Serialization: Report an error when machine functions have the same name.
authorAlex Lorenz <arphaman@gmail.com>
Mon, 15 Jun 2015 22:23:23 +0000 (22:23 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 15 Jun 2015 22:23:23 +0000 (22:23 +0000)
commit185789e9a04624d50638f1eb04661672b7323e9c
treecfa949b24268e9737cfc33280d5fc5e64fb3e3ef
parent9784231221a895e7c2ef7c79b3a1ef597bc10390
MIR Serialization: Report an error when machine functions have the same name.

This commit reports an error when the MIR parser encounters a machine
function with the name that is the same as the name of a different
machine function.

Reviewers: Duncan P. N. Exon Smith

Differential Revision: http://reviews.llvm.org/D10130

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239774 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MIRParser/MIRParser.cpp
test/CodeGen/MIR/machine-function-redefinition-error.mir [new file with mode: 0644]