to vg_translate.c, where the other UCodeBlock functions live.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2557
NEEDS(data_syms)
NEEDS(shadow_memory)
-/*--------------------------------------------------------------------*/
-/* UCodeBlocks */
-
-Int VG_(get_num_instrs) ( UCodeBlock* cb )
-{
- return cb->used;
-}
-
-Int VG_(get_num_temps) ( UCodeBlock* cb )
-{
- return cb->nextTemp;
-}
-
-UInstr* VG_(get_instr) ( UCodeBlock* cb, Int i )
-{
- return & cb->instrs[i];
-}
-
-UInstr* VG_(get_last_instr) ( UCodeBlock* cb )
-{
- return & cb->instrs[cb->used-1];
-}
-
/*--------------------------------------------------------------------*/
/*--- end vg_needs.c ---*/
/*--------------------------------------------------------------------*/
}
}
+Int VG_(get_num_instrs) ( UCodeBlock* cb )
+{
+ return cb->used;
+}
+
+Int VG_(get_num_temps) ( UCodeBlock* cb )
+{
+ return cb->nextTemp;
+}
+
+UInstr* VG_(get_instr) ( UCodeBlock* cb, Int i )
+{
+ return & cb->instrs[i];
+}
+
+UInstr* VG_(get_last_instr) ( UCodeBlock* cb )
+{
+ return & cb->instrs[cb->used-1];
+}
+
/*------------------------------------------------------------*/
/*--- Sanity checking uinstrs. ---*/