This is an archive of the discontinued LLVM Phabricator instance.

Detemplate reportDuplicate
ClosedPublic

Authored by espindola on Dec 22 2017, 4:16 PM.

Details

Summary

We normally avoid "switch (Config->EKind)", but in this case I think it is worth it.

It is only executed when there is an error and it allows detemplating a lot of code.

Diff Detail

Event Timeline

rafael created this revision.Dec 22 2017, 4:16 PM
grimar accepted this revision.Dec 23 2017, 12:23 AM

I think it is useful change because allows to, for example, call addRegular from non-templated code
and so use error reporting properly (I was need it in D41438), so LGTM.

This revision is now accepted and ready to land.Dec 23 2017, 12:23 AM
ruiu accepted this revision.Dec 25 2017, 10:47 PM

LGTM

ELF/InputFiles.cpp
104

I think we usually write default at end of switch.

espindola commandeered this revision.Mar 14 2018, 3:04 PM
espindola added a reviewer: rafael.