[llvm-commits] [dragonegg] r150341 - in /dragonegg/trunk: include/dragonegg/ABI.h src/DefaultABI.cpp

Duncan Sands baldrick at free.fr
Mon Feb 13 01:05:53 PST 2012


Hi Bill,

>> --- dragonegg/trunk/include/dragonegg/ABI.h (original)
>> +++ dragonegg/trunk/include/dragonegg/ABI.h Sun Feb 12 09:35:35 2012
>> @@ -42,6 +42,7 @@
>> /// DefaultABIClient - This is a simple implementation of the ABI client
>> /// interface that can be subclassed.
>> struct DefaultABIClient {
>> +  virtual void anchor();
>>    virtual ~DefaultABIClient() {}
>
> Why not just use the d'tor as the anchor instead of a whole other (unused) method?

as a devotee of the cargo-cult, I was happy to copy what LLVM does - if it's
good for LLVM, it must be good for all the world right! :)

Ciao, Duncan.



More information about the llvm-commits mailing list