Displaying 1 result from an estimated 1 matches for "immloc".
Did you mean:
idloc
2017 Mar 13
2
[RFC] improvements to LLVM diagnostic infrastructure
...defined in TableGen (just like in clang).
Currently, diagnostics are passed through a SourceMgr to get location info and then passed on to a diagnostics handler for printing (if it exists). This is usually wrapped in Warning() and Error() functions.
For example in ARMAsmParser.cpp:
Error(ImmLoc, "invalid immediate shift value");
which eventually calls SourceMgr::PrintMessage.
This would change to (incrementally throughout the code-base) :
Diag(ImmLoc, err_arm_invalid_immediate_shift);
and pass through LLVMDiagnosticsEngine to get the diagnostic message and severity (defi...