From: Florian Krohm Date: Fri, 16 Oct 2015 17:26:22 +0000 (+0000) Subject: Give typeOfPrimop external linkage. This allows us to simplify X-Git-Tag: svn/VALGRIND_3_12_0^2~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c017f73cecd94e9a04fe4f6224eec2113388edaf;p=thirdparty%2Fvalgrind.git Give typeOfPrimop external linkage. This allows us to simplify memcheck/tests/vbit-test which used to have local copies of certain functions from ir_defs.c git-svn-id: svn://svn.valgrind.org/vex/trunk@3200 --- diff --git a/VEX/priv/ir_defs.c b/VEX/priv/ir_defs.c index 88a2bf0fce..4a7b77033b 100644 --- a/VEX/priv/ir_defs.c +++ b/VEX/priv/ir_defs.c @@ -2474,7 +2474,6 @@ IRSB* deepCopyIRSBExceptStmts ( const IRSB* bb ) /*--- Primop types ---*/ /*---------------------------------------------------------------*/ -static void typeOfPrimop ( IROp op, /*OUTs*/ IRType* t_dst, diff --git a/VEX/pub/libvex_ir.h b/VEX/pub/libvex_ir.h index 9f10991d54..4c0539950d 100644 --- a/VEX/pub/libvex_ir.h +++ b/VEX/pub/libvex_ir.h @@ -1850,6 +1850,10 @@ typedef /* Pretty-print an op. */ extern void ppIROp ( IROp ); +/* For a given operand return the types of its arguments and its result. */ +extern void typeOfPrimop ( IROp op, + /*OUTs*/ IRType* t_dst, IRType* t_arg1, + IRType* t_arg2, IRType* t_arg3, IRType* t_arg4 ); /* Encoding of IEEE754-specified rounding modes. Note, various front and back ends rely on the actual numerical