This patch is to rename check CHECK and make it a C macro, so that
we can evaluate the second argument lazily.
Details
Details
Diff Detail
Diff Detail
- Repository
- rLLD LLVM Linker
Event Timeline
lld/include/lld/Common/ErrorHandler.h | ||
---|---|---|
116 ↗ | (On Diff #125782) | Perhaps it would be better to support only the two-argument form via the CHECK macro? That would not only simplify the macro definition, but also if I look at a check call with a single argument, I can tell from the name that it is just a straightforward function call. |
lld/include/lld/Common/ErrorHandler.h | ||
---|---|---|
116 ↗ | (On Diff #125782) | Yeah that probably makes more sense. I thought that this macro isn't that bad, but we should avoid this sort of hack. |