[lld] r260206 - Introduce the feature 'demangler' in check-lld. Mark lld/test/old-elf/X86_64/demangle.test as REQUIRES:demangler.

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 8 23:30:11 PST 2016


Author: chapuni
Date: Tue Feb  9 01:30:11 2016
New Revision: 260206

URL: http://llvm.org/viewvc/llvm-project?rev=260206&view=rev
Log:
Introduce the feature 'demangler' in check-lld. Mark lld/test/old-elf/X86_64/demangle.test as REQUIRES:demangler.

Modified:
    lld/trunk/test/lit.cfg
    lld/trunk/test/old-elf/X86_64/demangle.test

Modified: lld/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/lit.cfg?rev=260206&r1=260205&r2=260206&view=diff
==============================================================================
--- lld/trunk/test/lit.cfg (original)
+++ lld/trunk/test/lit.cfg Tue Feb  9 01:30:11 2016
@@ -196,6 +196,10 @@ if platform.system() in ['Darwin']:
 if platform.system() in ['FreeBSD', 'Linux']:
     config.available_features.add('system-linker-elf')
 
+# Set if host-cxxabi's demangler can handle target's symbols.
+if platform.system() not in ['Windows']:
+    config.available_features.add('demangler')
+
 # llvm-config knows whether it is compiled with asserts (and)
 # whether we are operating in release/debug mode.
 import subprocess

Modified: lld/trunk/test/old-elf/X86_64/demangle.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/old-elf/X86_64/demangle.test?rev=260206&r1=260205&r2=260206&view=diff
==============================================================================
--- lld/trunk/test/old-elf/X86_64/demangle.test (original)
+++ lld/trunk/test/old-elf/X86_64/demangle.test Tue Feb  9 01:30:11 2016
@@ -1,8 +1,8 @@
-# XFAIL: win32
-#
 # Check that the linker is able to demangle strings properly.
 # Once there is a way to add undefined symbols using yaml2obj, the test will be
 # changed.
+#
+# REQUIRES: demangler
 
 RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/undefcpp.o --noinhibit-exec 2>&1 | FileCheck -check-prefix=DEMANGLE %s
 RUN: lld -flavor old-gnu -target x86_64 %p/Inputs/undefcpp.o --noinhibit-exec --no-demangle 2>&1 | FileCheck -check-prefix=NODEMANGLE %s




More information about the llvm-commits mailing list