diff options
| author | Jessica Paquette <jpaquette@apple.com> | 2018-04-03 21:36:00 +0000 |
|---|---|---|
| committer | Jessica Paquette <jpaquette@apple.com> | 2018-04-03 21:36:00 +0000 |
| commit | d506bf8e3d0ff9f2637269553c43328b8b0e7371 (patch) | |
| tree | 3a50cff881c89a2a725b118d91616c126058d21c /llvm/test/CodeGen/X86/machine-outliner-debuginfo.ll | |
| parent | 88f40cf303c33cc1d8231e140ec19a78e1aa64f8 (diff) | |
| download | bcm5719-llvm-d506bf8e3d0ff9f2637269553c43328b8b0e7371.tar.gz bcm5719-llvm-d506bf8e3d0ff9f2637269553c43328b8b0e7371.zip | |
[MachineOutliner][NFC] Make outlined functions have internal linkage
The linkage type on outlined functions was private before. This meant that if
you set a breakpoint in an outlined function, the debugger wouldn't be able to
give a sane name to the outlined function.
This commit changes the linkage type to internal and updates any tests that
relied on the prefixes on the names of outlined functions.
llvm-svn: 329116
Diffstat (limited to 'llvm/test/CodeGen/X86/machine-outliner-debuginfo.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/machine-outliner-debuginfo.ll | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/X86/machine-outliner-debuginfo.ll b/llvm/test/CodeGen/X86/machine-outliner-debuginfo.ll index 3f6552ab2f7..e7482c091bf 100644 --- a/llvm/test/CodeGen/X86/machine-outliner-debuginfo.ll +++ b/llvm/test/CodeGen/X86/machine-outliner-debuginfo.ll @@ -10,7 +10,8 @@ define i32 @main() #0 !dbg !11 { %4 = alloca i32, align 4 %5 = alloca i32, align 4 ; There is a debug value in the middle of this section, make sure debug values are ignored. - ; CHECK: callq l_OUTLINED_FUNCTION_0 + ; CHECK: callq + ; CHECK-SAME: OUTLINED_FUNCTION_0 store i32 1, i32* %2, align 4 store i32 2, i32* %3, align 4 store i32 3, i32* %4, align 4 @@ -20,7 +21,8 @@ define i32 @main() #0 !dbg !11 { call void asm sideeffect "", "~{memory},~{dirflag},~{fpsr},~{flags}"() ; This is the same sequence of instructions without a debug value. It should be outlined ; in the same way. - ; CHECK: callq l_OUTLINED_FUNCTION_0 + ; CHECK: callq + ; CHECK-SAME: OUTLINED_FUNCTION_0 store i32 1, i32* %2, align 4 store i32 2, i32* %3, align 4 store i32 3, i32* %4, align 4 @@ -29,7 +31,7 @@ define i32 @main() #0 !dbg !11 { ret i32 0, !dbg !25 } -; CHECK-LABEL: l_OUTLINED_FUNCTION_0: +; CHECK: OUTLINED_FUNCTION_0: ; CHECK-NOT: .loc {{[0-9]+}} {{[0-9]+}} {{[0-9]+}} {{^(is_stmt)}} ; CHECK-NOT: ##DEBUG_VALUE: main:{{[a-z]}} <- {{[0-9]+}} ; CHECK: movl $1, -{{[0-9]+}}(%rbp) |

