aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sparse-llvm-dis
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-03-03 03:22:10 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-03-03 03:33:03 +0100
commitd909cdf88a3f97ec27f8232fc37741d3c7364a32 (patch)
tree7282ef1068c43e329660fe686f053892e30a0da9 /sparse-llvm-dis
parente207d0df64d8086d059349bc08fee310cf1cba84 (diff)
downloadsparse-dev-d909cdf88a3f97ec27f8232fc37741d3c7364a32.tar.gz
llvm: normalize sparse-llvm-dis' output
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@gmail.com>
Diffstat (limited to 'sparse-llvm-dis')
-rwxr-xr-xsparse-llvm-dis2
1 files changed, 1 insertions, 1 deletions
diff --git a/sparse-llvm-dis b/sparse-llvm-dis
index 2bd84080..2958217b 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 '