[DebugInfo] Fix debug information label tests
authorPetar Jovanovic <petar.jovanovic@mips.com>
Mon, 8 Oct 2018 22:10:34 +0000 (22:10 +0000)
committerPetar Jovanovic <petar.jovanovic@mips.com>
Mon, 8 Oct 2018 22:10:34 +0000 (22:10 +0000)
commite2877ad3b9a30ffdc2e7de48abdb90b9d22cab8f
treee1020c237abf79d0001638a07216a96329d646cc
parent47fd01516321d2dbe1f59b492e429ff757f5b315
[DebugInfo] Fix debug information label tests

Remove the space in the asm check so that the expression is more general
and can also capture MIPS labels which can be surrounded by braces, e.g.:

.4byte        ($tmp1)                 # DW_AT_low_pc

Also change optimization level to O0 because the DW_TAG_label does not
appear on MIPS when -O2 is used.

Patch by Milos Stojanovic.

Differential Revision: https://reviews.llvm.org/D52901

llvm-svn: 343999
llvm/test/DebugInfo/Generic/debug-label-inline.ll
llvm/test/DebugInfo/Generic/debug-label.ll