[llvm] 3d3445e - Revert "Fixed a profdata file size detection on Windows system."

Vladimir Vereschaka via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 10 18:05:57 PST 2019


Author: Vladimir Vereschaka
Date: 2019-11-10T18:05:24-08:00
New Revision: 3d3445e3e691a34a72643d07e675c618adeddafc

URL: https://github.com/llvm/llvm-project/commit/3d3445e3e691a34a72643d07e675c618adeddafc
DIFF: https://github.com/llvm/llvm-project/commit/3d3445e3e691a34a72643d07e675c618adeddafc.diff

LOG: Revert "Fixed a profdata file size detection on Windows system."

This reverts commit bcbb121ff6c8440382abfce8f2911a095f14602b.

Using 'ls -o' is not compatible way to fix the problem. FreeBSD and OSX
version of 'ls' do not support -o flag and test gets failed on these
platforms.

Differential Revision: https://reviews.llvm.org/D69317

Added: 
    

Modified: 
    llvm/test/tools/llvm-profdata/show-prof-size.test

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-profdata/show-prof-size.test b/llvm/test/tools/llvm-profdata/show-prof-size.test
index 926027992eee..cc9b16aa08cc 100644
--- a/llvm/test/tools/llvm-profdata/show-prof-size.test
+++ b/llvm/test/tools/llvm-profdata/show-prof-size.test
@@ -1,5 +1,5 @@
 ; RUN: llvm-profdata merge -sample -extbinary -prof-sym-list=%S/Inputs/profile-symbol-list-1.text %S/Inputs/sample-profile.proftext -o %t.1.output
-; RUN: ls -o %t.1.output |tr -s ' ' |cut -f4 -d ' ' > %t.txt
+; RUN: ls -l %t.1.output |tr -s ' ' |cut -f5 -d ' ' > %t.txt
 ; RUN: llvm-profdata show -sample -show-sec-info-only %t.1.output >> %t.txt
 ; RUN: FileCheck %s --input-file=%t.txt
 ; Check llvm-profdata shows the correct file size.


        


More information about the llvm-commits mailing list