• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Compile the following like so to reproduce the input:
2$ cl -c -O2 t.c -Z7
3void g();
4static inline void f() { g(); }
5static inline void h() { g(); }
6void k() {
7  f();
8  h();
9}
10
11RUN: llvm-readobj --codeview %p/Inputs/codeview-inlinees.obj | FileCheck %s
12
13CHECK:    SubSectionType: InlineeLines (0xF6)
14CHECK:      Inlinee: f (0x1003)
15CHECK:      Inlinee: h (0x1004)
16CHECK-NOT: Inlinee:
17
18CHECK:    GlobalProcIdSym {
19CHECK:      Kind: S_GPROC32_ID (0x1147)
20CHECK:      DisplayName: k
21CHECK:      LinkageName: k
22CHECK:    }
23CHECK:    InlineSiteSym
24CHECK:      Kind: S_INLINESITE (0x114D)
25CHECK:      Inlinee: h (0x1004)
26CHECK:    InlineSiteSym
27CHECK:      Kind: S_INLINESITE (0x114D)
28CHECK:      Inlinee: f (0x1003)
29CHECK:    InlineesSym {
30CHECK-NEXT:      Kind: S_INLINEES (0x1168)
31CHECK-NEXT:      Callers [
32CHECK-NEXT:        FuncID: f (0x1003)
33CHECK-NEXT:        FuncID: h (0x1004)
34CHECK-NEXT:      ]
35CHECK:    }
36CHECK:    ProcEnd {
37CHECK:      Kind: S_PROC_ID_END (0x114F)
38CHECK:    }
39