diff options
Diffstat (limited to 'lld/COFF/InputFiles.h')
| -rw-r--r-- | lld/COFF/InputFiles.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lld/COFF/InputFiles.h b/lld/COFF/InputFiles.h index 4cb9dd21750..14aecd45be8 100644 --- a/lld/COFF/InputFiles.h +++ b/lld/COFF/InputFiles.h @@ -61,13 +61,8 @@ public: // Returns the CPU type this file was compiled to. virtual MachineTypes getMachineType() { return IMAGE_FILE_MACHINE_UNKNOWN; } - // Returns a short, human-friendly filename. If this is a member of - // an archive file, a returned value includes parent's filename. - // Used for logging or debugging. - std::string getShortName(); - - // Sets a parent filename if this file is created from an archive. - void setParentName(StringRef N) { ParentName = N; } + // An archive file name if this file is created from an archive. + StringRef ParentName; // Returns .drectve section contents if exist. StringRef getDirectives() { return StringRef(Directives).trim(); } @@ -86,7 +81,6 @@ protected: private: const Kind FileKind; - StringRef ParentName; }; // .lib or .a file. @@ -222,6 +216,8 @@ private: static std::mutex Mu; }; +std::string toString(InputFile *File); + } // namespace coff } // namespace lld |

