1 //===- Symbols.cpp --------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 #include "InputFiles.h"
14 using namespace lld::macho;
16 void LazySymbol::fetchArchiveMember() { file->fetch(sym); }
18 // Returns a symbol for an error message.
19 std::string lld::toString(const Symbol &sym) {
20 if (Optional<std::string> s = demangleItanium(sym.getName()))
22 return std::string(sym.getName());