Add initial support for printing assembly diagnostics using the
DiagnosticsEngine infrastructure. Add support for -w (no warnings) and
-Werror (warnings are errors) and print a summary with the number of
errors and warnings. -fcolor-diagnostics handling is implemented as
well.
This patch adds a subclass to FullSourceLoc, called UnifiedSourceLoc,
which can hold an llvm-style SourceLoc and SourceMgr. This class is
responsible for the translation from the clang::FullSourceLoc API to
llvm-style operations.
With these changes in place, it will be possible to convert inline
assembly diagnostics as well.
Missing is support for ranges and hints.