[llvm] r232268 - Recover the ability to 'b CheckFailed' after r231577

Duncan P. N. Exon Smith dexonsmith at apple.com
Mon Mar 16 10:52:05 PDT 2015


> On 2015 Mar 16, at 10:36, Robinson, Paul <Paul_Robinson at playstation.sony.com> wrote:
> 
>> -----Original Message-----
>> From: llvm-commits-bounces at cs.uiuc.edu [mailto:llvm-commits-
>> bounces at cs.uiuc.edu] On Behalf Of Duncan P. N. Exon Smith
>> Sent: Saturday, March 14, 2015 9:48 AM
>> To: llvm-commits at cs.uiuc.edu
>> Subject: [llvm] r232268 - Recover the ability to 'b CheckFailed' after
>> r231577
>> 
>> Author: dexonsmith
>> Date: Sat Mar 14 11:47:37 2015
>> New Revision: 232268
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=232268&view=rev
>> Log:
>> Recover the ability to 'b CheckFailed' after r231577
>> 
>> Given that the stated purpose of `CheckFailed()` is to provide a nice
>> spot for a breakpoint, it'd be nice not to have to use a regex to break
>> on it.  Recover the ability to simply use `b CheckFailed` by
>> specializing the message-only version, and by changing the variadic
>> version to call into the message-only version.
>> 
>> Modified:
>>    llvm/trunk/lib/Analysis/Lint.cpp
>>    llvm/trunk/lib/IR/Verifier.cpp
>> 
>> Modified: llvm/trunk/lib/Analysis/Lint.cpp
>> URL: http://llvm.org/viewvc/llvm-
>> project/llvm/trunk/lib/Analysis/Lint.cpp?rev=232268&r1=232267&r2=232268&vi
>> ew=diff
>> ==========================================================================
>> ====
>> --- llvm/trunk/lib/Analysis/Lint.cpp (original)
>> +++ llvm/trunk/lib/Analysis/Lint.cpp Sat Mar 14 11:47:37 2015
>> @@ -141,13 +141,20 @@ namespace {
>>       }
>>     }
>> 
>> -    // CheckFailed - A check failed, so print out the condition and the
>> message
>> -    // that failed.  This provides a nice place to put a breakpoint if
>> you want
>> -    // to see why something is not correct.
>> -    template <typename... Ts>
>> -    void CheckFailed(const Twine &Message, const Ts &...Vs) {
>> -      MessagesStr << Message << '\n';
>> -      WriteValues({Vs...});
>> +    // \brief A check failed, so printout out the condition and the
>> message.
> 
> I thought doxygen comments needed a triple-slash?
> --paulr

They do.  r232388.



More information about the llvm-commits mailing list