Skip to content

Commit f2d735a

Browse files
authored
Merge pull request #5614 from tautschnig/messaget-remove_const_function_pointers
remove_const_function_pointerst isn't a messaget
2 parents 60ffbcd + 82cfbd4 commit f2d735a

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

src/goto-programs/remove_const_function_pointers.cpp

+8-10
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ Author: Thomas Kiley, [email protected]
1919

2020
#include "goto_functions.h"
2121

22-
#define LOG(message, irep) \
23-
do { \
24-
debug().source_location = irep.source_location(); \
25-
debug() << message << ": " << format(irep) << eom; \
26-
} \
27-
while(0)
22+
#define LOG(message, irep) \
23+
do \
24+
{ \
25+
log.debug().source_location = irep.source_location(); \
26+
log.debug() << message << ": " << format(irep) << messaget::eom; \
27+
} while(0)
2828

2929
/// To take a function call on a function pointer, and if possible resolve it to
3030
/// a small collection of possible values.
@@ -34,10 +34,8 @@ Author: Thomas Kiley, [email protected]
3434
remove_const_function_pointerst::remove_const_function_pointerst(
3535
message_handlert &message_handler,
3636
const namespacet &ns,
37-
const symbol_tablet &symbol_table):
38-
messaget(message_handler),
39-
ns(ns),
40-
symbol_table(symbol_table)
37+
const symbol_tablet &symbol_table)
38+
: log(message_handler), ns(ns), symbol_table(symbol_table)
4139
{}
4240

4341
/// To take a function call on a function pointer, and if possible resolve it to

src/goto-programs/remove_const_function_pointers.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class symbol_exprt;
2929
class symbol_tablet;
3030
class typecast_exprt;
3131

32-
class remove_const_function_pointerst:public messaget
32+
class remove_const_function_pointerst
3333
{
3434
public:
3535
typedef std::unordered_set<symbol_exprt, irep_hash> functionst;
@@ -101,6 +101,7 @@ class remove_const_function_pointerst:public messaget
101101
exprt get_component_value(
102102
const struct_exprt &struct_expr, const member_exprt &member_expr);
103103

104+
messaget log;
104105
const namespacet &ns;
105106
const symbol_tablet &symbol_table;
106107
};

0 commit comments

Comments
 (0)