[MC][PowerPC] Replace MCContext::reportFatalError calls with reportError
authorFangrui Song <i@maskray.me>
Sat, 15 Jan 2022 08:01:36 +0000 (00:01 -0800)
committerFangrui Song <i@maskray.me>
Sat, 15 Jan 2022 08:01:36 +0000 (00:01 -0800)
commit1ae1dd16cf2de7f85e2eb68f975d63fbd9c20098
tree1b936c1b6b428f6c452301af978f9315d5bbc15a
parent122cab9b0571a5f0c6c66a6a5077fd3f759b2113
[MC][PowerPC] Replace MCContext::reportFatalError calls with reportError

User errors should use reportError. reportError allows us to continue parsing
the file and collect more diagnostics.

While here, make the diagnostic follow convention, merge tests, and test
line/column numbers.
llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp
llvm/test/MC/PowerPC/ppc64-localentry-error1.s
llvm/test/MC/PowerPC/ppc64-localentry-error2.s [deleted file]