This template exists to abstract over FunctionPrototype and
ObjCMethodDecl, which have similar APIs for storing parameter types. In
place of a template, use a PointerUnion with two cases to handle this.
Hopefully this improves readability, since the type of the prototype is
easier to discover. This allows me to sink this code, which is mostly
assertions, out of the header file and into the cpp file. I can also
simplify the overloaded methods for computing isGenericMethod, and get
rid of the second EmitCallArgs overload.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/CodeGen/CGCall.cpp | ||
---|---|---|
3824 | This doesn't entirely match the style, but it is a shuffle after all. Id say that DC, and using if (const auto *CD = due to the dyn_cast would be nice, but that isn't important. |
This doesn't entirely match the style, but it is a shuffle after all. Id say that DC, and using if (const auto *CD = due to the dyn_cast would be nice, but that isn't important.