diff options
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/DebugInfo/COFF/inlining-files.ll | 2 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/COFF/inlining-levels.ll | 6 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/COFF/inlining.ll | 48 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/COFF/local-variables.ll | 4 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/COFF/register-variables.ll | 2 |
5 files changed, 47 insertions, 15 deletions
diff --git a/llvm/test/DebugInfo/COFF/inlining-files.ll b/llvm/test/DebugInfo/COFF/inlining-files.ll index 6a4cff808a4..261f0b6a906 100644 --- a/llvm/test/DebugInfo/COFF/inlining-files.ll +++ b/llvm/test/DebugInfo/COFF/inlining-files.ll @@ -24,7 +24,7 @@ ; OBJ: InlineSite { ; OBJ: PtrParent: 0x0 ; OBJ: PtrEnd: 0x0 -; OBJ: Inlinee: file_change (0x1003) +; OBJ: Inlinee: file_change (0x1002) ; OBJ: BinaryAnnotations [ ; OBJ: ChangeCodeOffsetAndLineOffset: {CodeOffset: 0x6, LineOffset: 1} ; OBJ: ChangeFile: D:\src\llvm\build\t.inc (0x8) diff --git a/llvm/test/DebugInfo/COFF/inlining-levels.ll b/llvm/test/DebugInfo/COFF/inlining-levels.ll index ef6e869a8c3..6b09fe25603 100644 --- a/llvm/test/DebugInfo/COFF/inlining-levels.ll +++ b/llvm/test/DebugInfo/COFF/inlining-levels.ll @@ -20,13 +20,13 @@ ; OBJ: SubSectionType: Symbols (0xF1) ; OBJ: ProcStart { ; OBJ: InlineSite { -; OBJ: Inlinee: h (0x1003) +; OBJ: Inlinee: h (0x1004) ; OBJ: } ; OBJ: InlineSite { -; OBJ: Inlinee: g (0x1004) +; OBJ: Inlinee: g (0x1003) ; OBJ: } ; OBJ: InlineSite { -; OBJ: Inlinee: f (0x1005) +; OBJ: Inlinee: f (0x1002) ; OBJ: } ; OBJ: InlineSiteEnd { ; OBJ: } diff --git a/llvm/test/DebugInfo/COFF/inlining.ll b/llvm/test/DebugInfo/COFF/inlining.ll index 2c0ff929939..26a26734608 100644 --- a/llvm/test/DebugInfo/COFF/inlining.ll +++ b/llvm/test/DebugInfo/COFF/inlining.ll @@ -45,11 +45,11 @@ ; ASM: [[inline_beg]]: ; ASM: .long 0 ; ASM: # Inlined function bar starts at t.cpp:8 -; ASM: .long 4099 -; ASM: .long 0 -; ASM: .long 8 +; ASM: .long 4098 # Type index of inlined function +; ASM: .long 0 # Offset into filechecksum table +; ASM: .long 8 # Starting line number ; ASM: # Inlined function foo starts at t.cpp:2 -; ASM: .long 4100 +; ASM: .long 4099 ; ASM: .long 0 ; ASM: .long 2 ; ASM: [[inline_end]]: @@ -69,16 +69,48 @@ ; ASM: .short 4430 ; ASM: .short 4430 +; We should only the LF_FUNC_ID records that we needed to reference. +; OBJ: CodeViewTypes [ +; OBJ: Section: .debug$T (4) +; OBJ: ArgList { +; OBJ: TypeLeafKind: LF_ARGLIST (0x1201) +; OBJ: TypeIndex: 0x1000 +; OBJ: NumArgs: 0 +; OBJ: } +; OBJ: ProcedureType { +; OBJ: TypeLeafKind: LF_PROCEDURE (0x1008) +; OBJ: TypeIndex: 0x1001 +; OBJ: ReturnType: void (0x3) +; OBJ: NumParameters: 0 +; OBJ: ArgListType: () (0x1000) +; OBJ: } +; OBJ: FuncId { +; OBJ: TypeLeafKind: LF_FUNC_ID (0x1601) +; OBJ: TypeIndex: 0x1002 +; OBJ: ParentScope: 0x0 +; OBJ: FunctionType: void () (0x1001) +; OBJ: Name: bar +; OBJ: } +; OBJ: FuncId { +; OBJ: TypeLeafKind: LF_FUNC_ID (0x1601) +; OBJ: TypeIndex: 0x1003 +; OBJ: ParentScope: 0x0 +; OBJ: FunctionType: void () (0x1001) +; OBJ: Name: foo +; OBJ: } +; OBJ-NOT: TypeLeafKind: LF_FUNC_ID +; OBJ: ] + ; OBJ: Subsection [ ; OBJ: SubSectionType: InlineeLines (0xF6) ; OBJ: SubSectionSize: 0x1C ; OBJ: InlineeSourceLine { -; OBJ: Inlinee: bar (0x1003) +; OBJ: Inlinee: bar (0x1002) ; OBJ: FileID: D:\src\llvm\build\t.cpp (0x0) ; OBJ: SourceLineNum: 8 ; OBJ: } ; OBJ: InlineeSourceLine { -; OBJ: Inlinee: foo (0x1004) +; OBJ: Inlinee: foo (0x1003) ; OBJ: FileID: D:\src\llvm\build\t.cpp (0x0) ; OBJ: SourceLineNum: 2 ; OBJ: } @@ -103,7 +135,7 @@ ; OBJ: InlineSite { ; OBJ: PtrParent: 0x0 ; OBJ: PtrEnd: 0x0 -; OBJ: Inlinee: bar (0x1003) +; OBJ: Inlinee: bar (0x1002) ; OBJ: BinaryAnnotations [ ; OBJ-NEXT: ChangeCodeOffsetAndLineOffset: {CodeOffset: 0x8, LineOffset: 1} ; OBJ-NEXT: ChangeLineOffset: -6 @@ -119,7 +151,7 @@ ; OBJ: InlineSite { ; OBJ: PtrParent: 0x0 ; OBJ: PtrEnd: 0x0 -; OBJ: Inlinee: foo (0x1004) +; OBJ: Inlinee: foo (0x1003) ; OBJ: BinaryAnnotations [ ; OBJ-NEXT: ChangeCodeOffsetAndLineOffset: {CodeOffset: 0xF, LineOffset: 1} ; OBJ-NEXT: ChangeCodeOffsetAndLineOffset: {CodeOffset: 0xA, LineOffset: 1} diff --git a/llvm/test/DebugInfo/COFF/local-variables.ll b/llvm/test/DebugInfo/COFF/local-variables.ll index dcfcec55833..2c9141f24b1 100644 --- a/llvm/test/DebugInfo/COFF/local-variables.ll +++ b/llvm/test/DebugInfo/COFF/local-variables.ll @@ -162,7 +162,7 @@ ; OBJ: InlineSite { ; OBJ: PtrParent: 0x0 ; OBJ: PtrEnd: 0x0 -; OBJ: Inlinee: will_be_inlined (0x1003) +; OBJ: Inlinee: will_be_inlined (0x1002) ; OBJ: BinaryAnnotations [ ; OBJ: ChangeLineOffset: 1 ; OBJ: ChangeCodeOffset: 0x14 @@ -192,7 +192,7 @@ ; OBJ: InlineSite { ; OBJ: PtrParent: 0x0 ; OBJ: PtrEnd: 0x0 -; OBJ: Inlinee: will_be_inlined (0x1003) +; OBJ: Inlinee: will_be_inlined (0x1002) ; OBJ: BinaryAnnotations [ ; OBJ: ChangeLineOffset: 1 ; OBJ: ChangeCodeOffset: 0x35 diff --git a/llvm/test/DebugInfo/COFF/register-variables.ll b/llvm/test/DebugInfo/COFF/register-variables.ll index d970e16300a..80cd67238d0 100644 --- a/llvm/test/DebugInfo/COFF/register-variables.ll +++ b/llvm/test/DebugInfo/COFF/register-variables.ll @@ -152,7 +152,7 @@ ; OBJ: InlineSite { ; OBJ: PtrParent: 0x0 ; OBJ: PtrEnd: 0x0 -; OBJ: Inlinee: inlineinc (0x1003) +; OBJ: Inlinee: inlineinc (0x1002) ; OBJ: } ; OBJ: Local { ; OBJ: Type: int (0x74) |

