X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gold%2Fmapfile.h;h=7035cdbdc75bd3a060d930b8f2bd7e0617c02fc2;hb=e822f2cda9bc484adb5f8860050640a5c6f1ced9;hp=ab55c38ea4f738ffbae26687d7f77ff07a4faf57;hpb=ac45a351cf89f2a832a04052688d325b5b2ac903;p=deliverable%2Fbinutils-gdb.git diff --git a/gold/mapfile.h b/gold/mapfile.h index ab55c38ea4..7035cdbdc7 100644 --- a/gold/mapfile.h +++ b/gold/mapfile.h @@ -1,6 +1,6 @@ // mapfile.h -- map file generation for gold -*- C++ -*- -// Copyright 2008 Free Software Foundation, Inc. +// Copyright (C) 2008-2020 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -33,7 +33,7 @@ class Archive; class Symbol; class Relobj; template -class Sized_relobj; +class Sized_relobj_file; class Output_section; class Output_data; @@ -54,6 +54,11 @@ class Mapfile void close(); + // Return the underlying file. + FILE* + file() + { return this->map_file_; } + // Report that we are including a member from an archive. This is // called by the archive reading code. void @@ -95,7 +100,7 @@ class Mapfile // Print symbols for an input section. template void - print_input_section_symbols(const Sized_relobj*, + print_input_section_symbols(const Sized_relobj_file*, unsigned int shndx); // Map file to write to.