Skip to content

Commit 4abd030

Browse files
committed
Move linker warning/error reporting to their own files
This is a large amount of code that is solely concerned with producing information that seeks to be helpful to a (human) user. Moving this to its own translation unit should increase the readability of core linking algorithms.
1 parent 242a89d commit 4abd030

File tree

6 files changed

+533
-484
lines changed

6 files changed

+533
-484
lines changed

src/linking/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
SRC = casting_replace_symbol.cpp \
22
linking.cpp \
3+
linking_diagnostics.cpp \
34
remove_internal_symbols.cpp \
45
static_lifetime_init.cpp \
56
# Empty last line

src/linking/casting_replace_symbol.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Author: Michael Tautschnig
1111

1212
#include "casting_replace_symbol.h"
1313

14+
#include <util/pointer_expr.h>
15+
#include <util/std_code.h>
16+
#include <util/std_expr.h>
17+
1418
bool casting_replace_symbolt::replace(exprt &dest) const
1519
{
1620
bool result = true; // unchanged

0 commit comments

Comments
 (0)