[PATCH] MIR Parser: use the correct, file based locations for machine instruction diagnostics.

Alex Lorenz arphaman at gmail.com
Fri Jun 19 13:49:20 PDT 2015


Hi dexonsmith, bob.wilson, bogner,

This patch is based on the patch that serializes immediate machine operands (http://reviews.llvm.org/D10573).

This patch translates the source locations for machine instruction parsing diagnostics from the locations in the
machine instruction source string to the locations in the MIR file.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10574

Files:
  include/llvm/CodeGen/MIRYamlMapping.h
  lib/CodeGen/MIRParser/MIRParser.cpp
  test/CodeGen/MIR/X86/expected-machine-operand.mir
  test/CodeGen/MIR/X86/missing-comma.mir
  test/CodeGen/MIR/X86/missing-instruction.mir
  test/CodeGen/MIR/X86/unknown-instruction.mir
  test/CodeGen/MIR/X86/unknown-register.mir
  test/CodeGen/MIR/X86/unrecognized-character.mir

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10574.28044.patch
Type: text/x-patch
Size: 6670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150619/8ed64917/attachment.bin>


More information about the llvm-commits mailing list