[lld] r334946 - [ELF] - Simplify the conflict-variable-linkage-name.s test case. [NFC]
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 18 07:14:35 PDT 2018
Author: grimar
Date: Mon Jun 18 07:14:35 2018
New Revision: 334946
URL: http://llvm.org/viewvc/llvm-project?rev=334946&view=rev
Log:
[ELF] - Simplify the conflict-variable-linkage-name.s test case. [NFC]
This is a follow up requested during post commit review for
"[lld] r333880 - [ELF] - Also use DW_AT_linkage_name when gathering information about variables for error messages."
It removes checking of the input objects since it is really excessive.
Modified:
lld/trunk/test/ELF/conflict-variable-linkage-name.s
Modified: lld/trunk/test/ELF/conflict-variable-linkage-name.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/conflict-variable-linkage-name.s?rev=334946&r1=334945&r2=334946&view=diff
==============================================================================
--- lld/trunk/test/ELF/conflict-variable-linkage-name.s (original)
+++ lld/trunk/test/ELF/conflict-variable-linkage-name.s Mon Jun 18 07:14:35 2018
@@ -1,25 +1,7 @@
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
-# RUN: llvm-dwarfdump %t.o | FileCheck -check-prefix=INPUT %s
# RUN: not ld.lld %t.o %t.o -o %t 2>&1 | FileCheck %s
-# INPUT: DW_TAG_variable
-# INPUT-NEXT: DW_AT_name ("bar")
-# INPUT-NEXT: DW_AT_type (0x0000003d "int")
-# INPUT-NEXT: DW_AT_external (true)
-# INPUT-NEXT: DW_AT_decl_file ("/path{{/|\\}}1.cpp")
-# INPUT-NEXT: DW_AT_decl_line (2)
-# INPUT-NEXT: DW_AT_location (DW_OP_addr 0x0)
-# INPUT-NEXT: DW_AT_linkage_name ("_ZN1A3barE")
-# INPUT: DW_TAG_variable
-# INPUT-NEXT: DW_AT_name ("bar")
-# INPUT-NEXT: DW_AT_type (0x0000003d "int")
-# INPUT-NEXT: DW_AT_external (true)
-# INPUT-NEXT: DW_AT_decl_file ("/path{{/|\\}}1.cpp")
-# INPUT-NEXT: DW_AT_decl_line (6)
-# INPUT-NEXT: DW_AT_location (DW_OP_addr 0x0)
-# INPUT-NEXT: DW_AT_linkage_name ("_ZN1Z3barE")
-
## Check we can report the locations of 2 different "bar" variables.
# CHECK: duplicate symbol: A::bar
# CHECK-NEXT: >>> defined at 1.cpp:2
More information about the llvm-commits
mailing list