[cfe-commits] r92953 - in /cfe/trunk/utils/VtableTest: Makefile check-zvt

Mike Stump mrs at apple.com
Thu Jan 7 14:21:27 PST 2010


Author: mrs
Date: Thu Jan  7 16:21:26 2010
New Revision: 92953

URL: http://llvm.org/viewvc/llvm-project?rev=92953&view=rev
Log:
Detailed vtable checker.

Added:
    cfe/trunk/utils/VtableTest/check-zvt   (with props)
Modified:
    cfe/trunk/utils/VtableTest/Makefile

Modified: cfe/trunk/utils/VtableTest/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/VtableTest/Makefile?rev=92953&r1=92952&r2=92953&view=diff

==============================================================================
--- cfe/trunk/utils/VtableTest/Makefile (original)
+++ cfe/trunk/utils/VtableTest/Makefile Thu Jan  7 16:21:26 2010
@@ -1,4 +1,4 @@
-GXX := g++
+GXX := llvm-g++-4.2
 CLANGXX := clang++
 
 all: one

Added: cfe/trunk/utils/VtableTest/check-zvt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/VtableTest/check-zvt?rev=92953&view=auto

==============================================================================
--- cfe/trunk/utils/VtableTest/check-zvt (added)
+++ cfe/trunk/utils/VtableTest/check-zvt Thu Jan  7 16:21:26 2010
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+N_STRUCTS=300
+
+# Utility routine to "hand" check vtables.
+
+let i=0;
+while [ $i != $N_STRUCTS ]; do
+  sed -n "/^__ZTV.*s$i:/,/\.[sg][el]/p" test-clang.s | grep -v '\.[sg][el]' >test-clang-ztv
+  sed -n "/^__ZTV.*s$i:/,/\.[sg][el]/p" test-gcc.s | grep -v '\.[sg][el]' >test-gcc-ztv
+  diff -U3 test-gcc-ztv test-clang-ztv
+  if [ $? != 0 ]; then
+     echo "FAIL: s$i vtable"
+  else
+     echo "PASS: s$i vtable"
+  fi
+  let i=i+1
+done

Propchange: cfe/trunk/utils/VtableTest/check-zvt

------------------------------------------------------------------------------
    svn:executable = *





More information about the cfe-commits mailing list