[PATCH] D40278: Object: Improve COFF irsymtab comdat representation.

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 21 11:33:27 PST 2017


rnk added inline comments.


================
Comment at: llvm/test/LTO/Resolution/X86/symtab.ll:61
 ; CHECK-NEXT: fallback _g9
- at g10 = weak alias i32, i32* @g9
+ at a1 = weak alias i32, i32* @g9
----------------
We should be able to test it with this IR:
```
$f = comdat any
define weak_odr x86_fastcallcc i32 @f(i32 inreg %a, i32 inreg %b) comdat {
entry:
  %add = add nsw i32 %b, %a
  ret i32 %add
}
```

I guess the symtab would say `@f at 8`. =/


https://reviews.llvm.org/D40278





More information about the llvm-commits mailing list