[llvm] r254435 - Use a forwarding constructor instead of an init method.
Rafael EspĂndola via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 2 15:15:09 PST 2015
>> -Linker::Linker(Module *M, DiagnosticHandlerFunction DiagnosticHandler) {
>> - init(M, DiagnosticHandler);
>> -}
>> -
>> -Linker::Linker(Module *M) {
>> - init(M, [this](const DiagnosticInfo &DI) {
>> - Composite->getContext().diagnose(DI);
>> - });
>> -}
>> +Linker::Linker(Module *M)
>> + : Linker(M,
>
> We can use these now?! I missed that memo.
>
It is not in the coding standard, but I have seem them being used
before. Not sure when did we start. Unfortunately they are fairly hard
to grep for.
Cheers,
Rafael
More information about the llvm-commits
mailing list