Allow exporting global external variables
This commit is contained in:
@@ -21,6 +21,16 @@ along with GCC; see the file COPYING3. If not see
|
||||
|
||||
namespace elna::gcc
|
||||
{
|
||||
linemap_guard::linemap_guard(const char *filename)
|
||||
{
|
||||
linemap_add(line_table, LC_ENTER, 0, filename, 1);
|
||||
}
|
||||
|
||||
linemap_guard::~linemap_guard()
|
||||
{
|
||||
linemap_add(line_table, LC_LEAVE, 0, NULL, 0);
|
||||
}
|
||||
|
||||
location_t get_location(const boot::position *position)
|
||||
{
|
||||
linemap_line_start(line_table, position->line, 0);
|
||||
|
Reference in New Issue
Block a user