grep for global functions only

llvm-svn: 327469
This commit is contained in:
Eugene Zemtsov 2018-03-14 01:07:18 +00:00
parent 37fbfc6815
commit c6d8fcb168
1 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
; Make sure that absolute source dir is detected correctly regardless of the platform.
; REQUIRES: object-emission
; RUN: %llc_dwarf -O0 -filetype=obj -o %t < %s
; RUN: llvm-nm -radix=o %t | grep posix_absolute_func > %t.posix_absolute_func
; RUN: llvm-nm -radix=o %t | grep posix_relative_func > %t.posix_relative_func
; RUN: llvm-nm -radix=o %t | grep win_func > %t.win_func
; RUN: llvm-nm -radix=o %t | grep win_func | FileCheck %s --check-prefix=TESTDEBUG
; RUN: llvm-nm -radix=o %t | grep "T posix_absolute_func" > %t.posix_absolute_func
; RUN: llvm-nm -radix=o %t | grep "T posix_relative_func" > %t.posix_relative_func
; RUN: llvm-nm -radix=o %t | grep "T win_func" > %t.win_func
; RUN: llvm-nm -radix=o %t | grep "T win_func" | FileCheck %s --check-prefix=TESTDEBUG
; RUN: llvm-symbolizer --functions=linkage --inlining --demangle=false --obj %t < %t.posix_absolute_func | FileCheck %s --check-prefix=POSIX_A
; RUN: llvm-symbolizer --functions=linkage --inlining --demangle=false --obj %t < %t.posix_relative_func | FileCheck %s --check-prefix=POSIX_R
; RUN: llvm-symbolizer --functions=linkage --inlining --demangle=false --obj %t < %t.win_func | FileCheck %s --check-prefix=WIN