Previously, GetOrCreateMultiVersionResolver() required the caller to provide
a GlobalDecl along with an llvm::type and FunctionDecl. The latter two can be
cheaply obtained from the first, and the llvm::type parameter is not always
used, so requiring the caller to provide them was unnecessary and created the
possibility that callers would pass an inconsistent set. This change simplifies
the interface to only require the GlobalDecl value.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/CodeGen/CodeGenModule.cpp | ||
---|---|---|
3539–3541 | This is a drive by cleanup. arrangeGlobalDeclaration() handles the CXXMethodDecl special case (as well as other special cases). We rely on such calls elsewhere; see CodeGenModule::emitMultiVersionFunctions() for example. |
This is a drive by cleanup. arrangeGlobalDeclaration() handles the CXXMethodDecl special case (as well as other special cases). We rely on such calls elsewhere; see CodeGenModule::emitMultiVersionFunctions() for example.