[cfe-commits] r99802 - /cfe/trunk/utils/VtableTest/check-ztt
Anders Carlsson
andersca at mac.com
Sun Mar 28 20:21:41 PDT 2010
Author: andersca
Date: Sun Mar 28 22:21:40 2010
New Revision: 99802
URL: http://llvm.org/viewvc/llvm-project?rev=99802&view=rev
Log:
Sprinkle some sed dust over check-ztt to make it work with newer clang asm output. (I am not a sed expert so this might be terribly inefficient :)
Modified:
cfe/trunk/utils/VtableTest/check-ztt
Modified: cfe/trunk/utils/VtableTest/check-ztt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/VtableTest/check-ztt?rev=99802&r1=99801&r2=99802&view=diff
==============================================================================
--- cfe/trunk/utils/VtableTest/check-ztt (original)
+++ cfe/trunk/utils/VtableTest/check-ztt Sun Mar 28 22:21:40 2010
@@ -7,9 +7,9 @@
let i=1;
while [ $i != $N_STRUCTS ]; do
sed -n "/^__ZTT.*s$i:/,/\.[sg][el]/p" test-clang.s |
- grep -v '\.[sg][el]' | sed 's/(\([0-9][0-9]*\))/\1/' >test-clang-ztt
+ grep -v '\.[sg][el]' | sed -e 's/[()]//g' -e '/^$/d' >test-clang-ztt
sed -n "/^__ZTT.*s$i:/,/\.[sg][el]/p" test-gcc.s |
- grep -v '\.[sg][el]' | sed 's/(\([0-9][0-9]*\))/\1/' >test-gcc-ztt
+ grep -v '\.[sg][el]' | sed -e 's/[()]//g' -e 's/ + /+/' >test-gcc-ztt
diff -U3 test-gcc-ztt test-clang-ztt
if [ $? != 0 ]; then
echo "FAIL: s$i VTT"
More information about the cfe-commits
mailing list