mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
Reviewed by: ruiu, grimar, espindola Differential Revision: https://reviews.llvm.org/D44562 Summary: r331971 changes the debug line parser interface to report LLVM errors in an interface that different executables can use, rather than always being printed directly as warnings to stderr. This change allows LLD to make use of the new interface and call its own warning methods to report problems. llvm-svn: 331972
22 lines
587 B
ArmAsm
22 lines
587 B
ArmAsm
# REQUIRES: x86
|
|
|
|
# LLD uses the debug data to get information for error messages, if possible.
|
|
# However, if the debug line section is empty, we should not attempt to parse
|
|
# it, as that would result in errors from the parser.
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
# RUN: not ld.lld %t.o -o %t.elf 2>&1 | FileCheck %s
|
|
|
|
# CHECK-NOT: warning:
|
|
# CHECK-NOT: error:
|
|
# CHECK: error: undefined symbol: undefined
|
|
# CHECK-NEXT: {{.*}}.o:(.text+0x1)
|
|
# CHECK-NOT: warning:
|
|
# CHECK-NOT: error:
|
|
|
|
.globl _start
|
|
_start:
|
|
callq undefined
|
|
|
|
.section .debug_line,"",@progbits
|