[lld] r280797 - [ELF] - Enable testcases that uses demangler to run under windows and escape quotes around "C++".

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 7 05:14:26 PDT 2016


Thanks!

On 7 September 2016 at 05:59, George Rimar via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Author: grimar
> Date: Wed Sep  7 04:59:29 2016
> New Revision: 280797
>
> URL: http://llvm.org/viewvc/llvm-project?rev=280797&view=rev
> Log:
> [ELF] - Enable testcases that uses demangler to run under windows and escape quotes around "C++".
>
> Previously testcases were enabled only for shell.
> r280733 added c++ itanium demangler to lld and we can enable them fully.
>
> Also this change make quotes to be escaped:
>
> extern "C++" -> extern \"C++\", which worked before just because we are dropping tokens
> quotes internally at this moment.
>
> Modified:
>     lld/trunk/test/ELF/version-script-extern-wildcards.s
>     lld/trunk/test/ELF/version-script-extern.s
>
> Modified: lld/trunk/test/ELF/version-script-extern-wildcards.s
> URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script-extern-wildcards.s?rev=280797&r1=280796&r2=280797&view=diff
> ==============================================================================
> --- lld/trunk/test/ELF/version-script-extern-wildcards.s (original)
> +++ lld/trunk/test/ELF/version-script-extern-wildcards.s Wed Sep  7 04:59:29 2016
> @@ -1,15 +1,15 @@
> -# REQUIRES: shell
> +# REQUIRES: x86
>
>  # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
>  # RUN: echo "LIBSAMPLE_1.0 { \
>  # RUN:   global:             \
> -# RUN:      extern "C++" {   \
> +# RUN:      extern \"C++\" { \
>  # RUN:        foo*;          \
>  # RUN:   };                  \
>  # RUN: };                    \
>  # RUN: LIBSAMPLE_2.0 {       \
>  # RUN:   global:             \
> -# RUN:     extern "C++" {    \
> +# RUN:     extern \"C++\" {  \
>  # RUN:       zed*;           \
>  # RUN:       bar;            \
>  # RUN:   };                  \
>
> Modified: lld/trunk/test/ELF/version-script-extern.s
> URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script-extern.s?rev=280797&r1=280796&r2=280797&view=diff
> ==============================================================================
> --- lld/trunk/test/ELF/version-script-extern.s (original)
> +++ lld/trunk/test/ELF/version-script-extern.s Wed Sep  7 04:59:29 2016
> @@ -1,17 +1,17 @@
> -# REQUIRES: shell
> +# REQUIRES: x86
>
>  # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
>  # RUN: echo "LIBSAMPLE_1.0 { \
>  # RUN:   global:             \
> -# RUN:      extern "C++" {   \
> -# RUN:         \"foo(int)\";    \
> -# RUN:         \"zed(int)\";    \
> +# RUN:      extern \"C++\" { \
> +# RUN:         \"foo(int)\"; \
> +# RUN:         \"zed(int)\"; \
>  # RUN:   };                  \
>  # RUN: };                    \
>  # RUN: LIBSAMPLE_2.0 {       \
>  # RUN:   global:             \
> -# RUN:     extern "C++" {    \
> -# RUN:       \"bar(int)\";      \
> +# RUN:     extern \"C++\" {  \
> +# RUN:       \"bar(int)\";   \
>  # RUN:   };                  \
>  # RUN: }; " > %t.script
>  # RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list