ParseError::getMessage() API.

Hi,

The method ParseError::getMessage() seems to have got deleted from
lib/AsmParser/Parser.cpp during the parser rewrite. Right now it's
there in the header (include/llvm/Assembly/Parser.h) but not in
lib/AsmParser/Parser.cpp.

Is this API still valid? Or is it PrintError() that's meant to be used?

Thanks & Regards,
-Mahadevan.

Hi,

The method ParseError::getMessage() seems to have got deleted from
lib/AsmParser/Parser.cpp during the parser rewrite. Right now it's
there in the header (include/llvm/Assembly/Parser.h) but not in
lib/AsmParser/Parser.cpp.

Fixed, sorry!

Is this API still valid? Or is it PrintError() that's meant to be used?

PrintError is preferred. You can also use getRawMessage.

-Chris