16 lines
453 B
C++
16 lines
453 B
C++
#include <iostream>
|
|
#include <final.h>
|
|
|
|
#include <safe-input.h>
|
|
|
|
void on_finish_unit(void* plugin_data, void* user_data) {
|
|
/*
|
|
TODO
|
|
The result lbasename(...) is not unique (e.g., "file.c" and "sub/file.c")
|
|
Calculate UID for compilation unit -> hash(main_input_filename)
|
|
Add UID symbol to CU -> __spslr_cu_<uid>
|
|
Then dump accumulated data for finalizer
|
|
*/
|
|
std::cout << "Finishing unit \"" << lbasename(main_input_filename) << "\"" << std::endl;
|
|
}
|