1 # REQUIRES: x86-registered-target
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o -g
9 # Check the default is to demangle and that the last of --demangle and
11 # RUN: llvm-symbolizer --obj %t.o 0 \
12 # RUN: | FileCheck %s --check-prefix=DEMANGLED_FUNCTION_NAME
13 # RUN: llvm-symbolizer --demangle --obj %t.o 0 \
14 # RUN: | FileCheck %s --check-prefix=DEMANGLED_FUNCTION_NAME
15 # RUN: llvm-symbolizer -C --obj %t.o 0 \
16 # RUN: | FileCheck %s --check-prefix=DEMANGLED_FUNCTION_NAME
17 # RUN: llvm-symbolizer --no-demangle --obj %t.o 0 \
18 # RUN: | FileCheck %s --check-prefix=MANGLED_FUNCTION_NAME
19 # RUN: llvm-symbolizer --demangle --no-demangle --obj %t.o 0 \
20 # RUN: | FileCheck %s --check-prefix=MANGLED_FUNCTION_NAME
21 # RUN: llvm-symbolizer -C --no-demangle --obj %t.o 0 \
22 # RUN: | FileCheck %s --check-prefix=MANGLED_FUNCTION_NAME
23 # RUN: llvm-symbolizer --no-demangle --demangle --obj %t.o 0 \
24 # RUN: | FileCheck %s --check-prefix=DEMANGLED_FUNCTION_NAME
25 # RUN: llvm-symbolizer --no-demangle -C --obj %t.o 0 \
26 # RUN: | FileCheck %s --check-prefix=DEMANGLED_FUNCTION_NAME
28 # Check that for llvm-addr2line the default is not to demangle.
29 # RUN: llvm-addr2line -fe %t.o 0 \
30 # RUN: | FileCheck %s --check-prefix=MANGLED_FUNCTION_NAME
31 # RUN: llvm-addr2line -fCe %t.o 0 \
32 # RUN: | FileCheck %s --check-prefix=DEMANGLED_FUNCTION_NAME
34 # pprof passes -demangle=false
35 # RUN: llvm-symbolizer -demangle=false --obj %t.o 0 \
36 # RUN: | FileCheck %s --check-prefix=MANGLED_FUNCTION_NAME
37 # RUN: llvm-symbolizer -demangle=true --obj %t.o 0 \
38 # RUN: | FileCheck %s --check-prefix=DEMANGLED_FUNCTION_NAME
40 # MANGLED_FUNCTION_NAME: _Z1cv
41 # DEMANGLED_FUNCTION_NAME: c()