[PATCH] D21969: [ELF] - Implemented --fatal-warnings option.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 7 05:02:28 PDT 2016


On 7 July 2016 at 03:21, George Rimar <grimar at accesssoftek.com> wrote:
>
>> -void warning(const Twine &Msg) { llvm::errs() << Msg << "\n"; }
>> +void warning(const Twine &Msg) {
>> +  if (Config->FatalWarnings)
>> +    error(Msg);
>> +  else
>> +    llvm::errs() << Msg << "\n";
>>
>> You don't need `llvm::`.
>
> I need. Also it is consistent with other code in error.cpp

We are just missing a "using namespace llvm" in that file. We should
probably fix that.

Cheers,
Rafael


More information about the llvm-commits mailing list