[PATCH] D156172: [clang][CodeGen] Emit annotations for function declarations.
Brendan Dahl via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 25 14:06:37 PDT 2023
brendandahl added a comment.
That example appears to still work the same with my patch:
@xxx = global ptr @foo, align 8
@.str = private unnamed_addr constant [4 x i8] c"bar\00", section "llvm.metadata"
@.str.1 = private unnamed_addr constant [8 x i8] c"main2.c\00", section "llvm.metadata"
@llvm.global.annotations = appending global [1 x { ptr, ptr, ptr, i32, ptr }] [{ ptr, ptr, ptr, i32, ptr } { ptr @foo, ptr @.str, ptr @.str.1, i32 3, ptr null }], section "llvm.metadata"
I'm not very familiar with the CodeGenModule, so I'm happy to move the call to `AddGlobalAnnotations` if there is a better place.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156172/new/
https://reviews.llvm.org/D156172
More information about the cfe-commits
mailing list