aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorTom Honermann <tom.honermann@intel.com>2022-03-31 21:48:28 -0700
committerTom Honermann <tom@honermann.net>2022-04-05 19:50:22 -0400
commit0ace0100aec31bdff7e856df806cca18d8faabd7 (patch)
tree962b192794fafff70dc7b13b5727eb0a7a0283f1 /clang/lib/CodeGen/CodeGenModule.h
parentbed5ee3f4ba2406658760ec4029ed222c6213ff7 (diff)
downloadllvm-0ace0100aec31bdff7e856df806cca18d8faabd7.zip
llvm-0ace0100aec31bdff7e856df806cca18d8faabd7.tar.gz
llvm-0ace0100aec31bdff7e856df806cca18d8faabd7.tar.bz2
[clang] NFC: Simplify the interface to CodeGenModule::GetOrCreateMultiVersionResolver().
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. Reviewed By: erichkeane Differential Revision: https://reviews.llvm.org/D122956
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index a68c681..9d33d0c 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -1472,9 +1472,7 @@ private:
// the resolver symbol for the provided declaration. The value returned
// will be for an ifunc (llvm::GlobalIFunc) if the current target supports
// that feature and for a regular function (llvm::GlobalValue) otherwise.
- llvm::Constant *GetOrCreateMultiVersionResolver(GlobalDecl GD,
- llvm::Type *DeclTy,
- const FunctionDecl *FD);
+ llvm::Constant *GetOrCreateMultiVersionResolver(GlobalDecl GD);
// In scenarios where a function is not known to be a multiversion function
// until a later declaration, it is sometimes necessary to change the