[PATCH] llvm: normalize sparse-llvm-dis' output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Depending on some combination of host architecture/LLVM's version/...
the output of llvm-dis may or may not contains the target layout.
Worse it may also contains the target triple that was used to
compile sparse-llvm.

This is a problem for sparse-llvm-dis (which unique purpose is to test
the generated LLVM bytecode) given that the test-system doesn't offer
much flexibility: it only known about line patterns or the whole output
without having the possibility to ignore some lines.

Fix this by filtering out lines begining by 'target ' in the output of
sparse-llvm-dis.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 sparse-llvm-dis | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sparse-llvm-dis b/sparse-llvm-dis
index 2bd840801..2958217b4 100755
--- a/sparse-llvm-dis
+++ b/sparse-llvm-dis
@@ -12,4 +12,4 @@ if [ $# -eq 0 ]; then
 fi
 
 DIRNAME=$(dirname $0)
-$DIRNAME/sparse-llvm "$@" | "$DIS"
+$DIRNAME/sparse-llvm "$@" | "$DIS" | grep -v '^target '
-- 
2.16.2

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux