Compacted section list. Somewhat more controlled ctarg search.

This commit is contained in:
Christoffer Lerno
2023-07-15 16:31:53 +02:00
parent 34306cbf5d
commit 4325d017c8
10 changed files with 72 additions and 32 deletions

View File

@@ -0,0 +1,15 @@
// #target: macos-x64
module test;
int z @section("__TEXT,__custoection");
int w @section("__TEXT,__custoection");
fn void main()
{
int a = z + w;
}
/* #expect: test.ll
@test.z = local_unnamed_addr global i32 0, section "__TEXT,__custoection", align 4
@test.w = local_unnamed_addr global i32 0, section "__TEXT,__custoection", align 4