[llvm-commits] [llvm] r155012 - in /llvm/trunk: include/llvm/TableGen/Error.h lib/TableGen/Error.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Apr 18 11:03:40 PDT 2012


On Apr 18, 2012, at 10:46 AM, Jim Grosbach <grosbach at apple.com> wrote:

> Author: grosbach
> Date: Wed Apr 18 12:46:31 2012
> New Revision: 155012
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=155012&view=rev
> Log:
> TableGen add warning diagnostic helper functions.

Nice.

> +void PrintWarning(const Twine &Msg) {
> +  errs() << "error:" << Msg << "\n";
> +}

s/error:/warning:/

It is tempting to also add support for -Werror.

/jakob




More information about the llvm-commits mailing list