aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/IRObjectFile.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2020-12-08 13:54:34 -0800
committerReid Kleckner <rnk@google.com>2020-12-09 11:08:00 -0800
commitd7098ff29c58dd08ede8314818b7de7fd2fea4cc (patch)
tree99303452f6abd90737527804fa3642b0ef79354d /llvm/lib/Object/IRObjectFile.cpp
parent199ec40e7bcc8548282d803b1a43b1ae1d3b57ce (diff)
downloadllvm-d7098ff29c58dd08ede8314818b7de7fd2fea4cc.zip
llvm-d7098ff29c58dd08ede8314818b7de7fd2fea4cc.tar.gz
llvm-d7098ff29c58dd08ede8314818b7de7fd2fea4cc.tar.bz2
De-templatify EmitCallArgs argument type checking, NFCI
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. Differential Revision: https://reviews.llvm.org/D92883
Diffstat (limited to 'llvm/lib/Object/IRObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions