[CodeGen] Remove unused declaration getOrCreateRelativeStub
authorKazu Hirata <kazu@google.com>
Sun, 28 May 2023 19:11:28 +0000 (12:11 -0700)
committerKazu Hirata <kazu@google.com>
Sun, 28 May 2023 19:11:28 +0000 (12:11 -0700)
The corresponding function definition was removed by:

  commit cf8ff75bade763b054476321dcb82dcb2e7744c7
  Author: Leonard Chan <leonardchan@google.com>
  Date:   Tue Jul 14 14:56:38 2020 -0700

clang/lib/CodeGen/CGVTables.h

index e7b59d9..9d42235 100644 (file)
@@ -75,16 +75,6 @@ class CodeGenVTables {
                             bool vtableHasLocalLinkage,
                             bool isCompleteDtor) const;
 
-  /// Create a dso_local stub that will be used for a relative reference in the
-  /// relative vtable layout. This stub will just be a tail call to the original
-  /// function and propagate any function attributes from the original. If the
-  /// original function is already dso_local, the original is returned instead
-  /// and a stub is not created.
-  llvm::Function *
-  getOrCreateRelativeStub(llvm::Function *func,
-                          llvm::GlobalValue::LinkageTypes stubLinkage,
-                          bool isCompleteDtor) const;
-
   bool useRelativeLayout() const;
 
   llvm::Type *getVTableComponentType() const;