diff options
author | Reid Kleckner <rnk@google.com> | 2025-04-24 14:40:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-24 14:40:14 -0700 |
commit | 0a3f2a05f27097c47d45e16828b0da0dd51fad48 (patch) | |
tree | abca010b8b0a34658bfdf3bd4e3d797ba848c0b4 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 80182a7d5d66c8dc90bb4623c1f722aba7ebe45b (diff) | |
download | llvm-0a3f2a05f27097c47d45e16828b0da0dd51fad48.zip llvm-0a3f2a05f27097c47d45e16828b0da0dd51fad48.tar.gz llvm-0a3f2a05f27097c47d45e16828b0da0dd51fad48.tar.bz2 |
[BPF] Fix issues with external declarations of C++ structor decls (#137079)
Use GetAddrOfGlobal, which is a more general API that takes a
GlobalDecl, and handles declaring C++ destructors and other types in a
general way. We can use this to generalize over functions and variable
declarations.
This fixes issues reported on #130674 by @lexi-nadia .
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 9a0bc67..59f4005 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1852,8 +1852,6 @@ private: void EmitMultiVersionFunctionDefinition(GlobalDecl GD, llvm::GlobalValue *GV); void EmitGlobalVarDefinition(const VarDecl *D, bool IsTentative = false); - void EmitExternalVarDeclaration(const VarDecl *D); - void EmitExternalFunctionDeclaration(const FunctionDecl *D); void EmitAliasDefinition(GlobalDecl GD); void emitIFuncDefinition(GlobalDecl GD); void emitCPUDispatchDefinition(GlobalDecl GD); |