This patch is based on the patch that connects MIRParser to the machine function analysis pass (http://reviews.llvm.org/D9928).
This patch 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.