[clang] d0e4119 - [CodeGen] Remove unused declaration getOrCreateRelativeStub

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Sun May 28 12:11:42 PDT 2023


Author: Kazu Hirata
Date: 2023-05-28T12:11:28-07:00
New Revision: d0e4119d848bbb8df6a7fa303ad8302a770fbab8

URL: https://github.com/llvm/llvm-project/commit/d0e4119d848bbb8df6a7fa303ad8302a770fbab8
DIFF: https://github.com/llvm/llvm-project/commit/d0e4119d848bbb8df6a7fa303ad8302a770fbab8.diff

LOG: [CodeGen] Remove unused declaration getOrCreateRelativeStub

The corresponding function definition was removed by:

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

Added: 
    

Modified: 
    clang/lib/CodeGen/CGVTables.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CGVTables.h b/clang/lib/CodeGen/CGVTables.h
index e7b59d94f257..9d4223547050 100644
--- a/clang/lib/CodeGen/CGVTables.h
+++ b/clang/lib/CodeGen/CGVTables.h
@@ -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;


        


More information about the cfe-commits mailing list