]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Constification part 3.
authorFlorian Krohm <florian@eich-krohm.de>
Wed, 24 Sep 2014 12:00:49 +0000 (12:00 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Wed, 24 Sep 2014 12:00:49 +0000 (12:00 +0000)
Constify parameters of instrumentation functions and callbacks from
VexTranslateArgs.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2958

VEX/priv/guest_generic_bb_to_IR.c
VEX/priv/guest_generic_bb_to_IR.h
VEX/pub/libvex.h
VEX/switchback/switchback.c

index 63e6a2afbc2b1a0dad2a6b03c8834492d63d47b5..76d0d43b250aefe845ed0335d4ff4139b29e41d4 100644 (file)
@@ -192,7 +192,7 @@ IRSB* bb_to_IR (
          /*IN*/ VexArchInfo*     archinfo_guest,
          /*IN*/ VexAbiInfo*      abiinfo_both,
          /*IN*/ IRType           guest_word_type,
-         /*IN*/ UInt             (*needs_self_check)(void*,VexGuestExtents*),
+         /*IN*/ UInt             (*needs_self_check)(void*,const VexGuestExtents*),
          /*IN*/ Bool             (*preamble_function)(void*,IRSB*),
          /*IN*/ Int              offB_GUEST_CMSTART,
          /*IN*/ Int              offB_GUEST_CMLEN,
index 5a7f016f9b13c351e9d3cbbf7cb709f73098e8d7..e06bd27f169f128d7ba4c85db6b3c492e238c8b7 100644 (file)
@@ -182,7 +182,7 @@ IRSB* bb_to_IR (
          /*IN*/ VexArchInfo*     archinfo_guest,
          /*IN*/ VexAbiInfo*      abiinfo_both,
          /*IN*/ IRType           guest_word_type,
-         /*IN*/ UInt             (*needs_self_check)(void*,VexGuestExtents*),
+         /*IN*/ UInt             (*needs_self_check)(void*,const VexGuestExtents*),
          /*IN*/ Bool             (*preamble_function)(void*,IRSB*),
          /*IN*/ Int              offB_GUEST_CMSTART,
          /*IN*/ Int              offB_GUEST_CMLEN,
index 5700ba6d5e1b9d1672e6e92278e1d17f5ce31805..b1f18076be94f86e285ee62b2d6b6fdc0a50fd04 100644 (file)
@@ -666,15 +666,15 @@ typedef
         NULL. */
       IRSB*   (*instrument1) ( /*callback_opaque*/void*, 
                                IRSB*, 
-                               VexGuestLayout*, 
-                               VexGuestExtents*,
-                               VexArchInfo*,
+                               const VexGuestLayout*, 
+                               const VexGuestExtents*,
+                               const VexArchInfo*,
                                IRType gWordTy, IRType hWordTy );
       IRSB*   (*instrument2) ( /*callback_opaque*/void*, 
                                IRSB*, 
-                               VexGuestLayout*, 
-                               VexGuestExtents*,
-                               VexArchInfo*,
+                               const VexGuestLayout*, 
+                               const VexGuestExtents*,
+                               const VexArchInfo*,
                                IRType gWordTy, IRType hWordTy );
 
       IRSB* (*finaltidy) ( IRSB* );
@@ -685,7 +685,7 @@ typedef
          that the i'th extent needs a check.  Since there can be at most
          3 extents, the returned values must be between 0 and 7. */
       UInt (*needs_self_check)( /*callback_opaque*/void*,
-                                VexGuestExtents* );
+                                const VexGuestExtents* );
 
       /* IN: optionally, a callback which allows the caller to add its
          own IR preamble following the self-check and any other
index 1fa932c191fd3e753a1acda01a72ea175e1ef6a9..48f3d1fa1d80fa8c15376c795e60b06c56dddae9 100644 (file)
@@ -110,7 +110,7 @@ static Bool chase_into_ok ( void* opaque, Addr64 dst ) {
    return False;
 }
 
-static UInt needs_self_check ( void* opaque, VexGuestExtents* vge ) {
+static UInt needs_self_check ( void* opaque, const VexGuestExtents* vge ) {
    return 0;
 }