diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-06 20:14:02 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-06 20:14:02 +0000 |
| commit | c09ce7fd2d62d85dcdf370f4bef732380fca4f1b (patch) | |
| tree | dd5cf05b9ae703e6fb816b9663d4a0c903e0c2c6 /COFF/InputFiles.cpp | |
| parent | 5d4d137132d719d0d20d119375b205d6a2c721ee (diff) | |
Vendor import of lld trunk r291274:vendor/lld/lld-trunk-r291274
Notes
svn path=/vendor/lld/dist/; revision=311540
svn path=/vendor/lld/lld-trunk-r291274/; revision=311541; tag=vendor/lld/lld-trunk-r291274
Diffstat (limited to 'COFF/InputFiles.cpp')
| -rw-r--r-- | COFF/InputFiles.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/COFF/InputFiles.cpp b/COFF/InputFiles.cpp index 0a97c2185f89..cde355cd3f34 100644 --- a/COFF/InputFiles.cpp +++ b/COFF/InputFiles.cpp @@ -372,6 +372,8 @@ MachineTypes BitcodeFile::getMachineType() { return IMAGE_FILE_MACHINE_UNKNOWN; } } +} // namespace coff +} // namespace lld // Returns the last element of a path, which is supposed to be a filename. static StringRef getBasename(StringRef Path) { @@ -382,7 +384,7 @@ static StringRef getBasename(StringRef Path) { } // Returns a string in the format of "foo.obj" or "foo.obj(bar.lib)". -std::string toString(InputFile *File) { +std::string lld::toString(coff::InputFile *File) { if (!File) return "(internal)"; if (File->ParentName.empty()) @@ -393,6 +395,3 @@ std::string toString(InputFile *File) { .str(); return StringRef(Res).lower(); } - -} // namespace coff -} // namespace lld |
