Lines Matching refs:StringRef
40 bool MachOLinkingContext::parsePackedVersion(StringRef str, uint32_t &result) {
46 SmallVector<StringRef, 3> parts;
75 bool MachOLinkingContext::parsePackedVersion(StringRef str, uint64_t &result) {
81 SmallVector<StringRef, 5> parts;
92 for (StringRef str : llvm::makeArrayRef(parts).slice(1)) {
125 MachOLinkingContext::archFromName(StringRef archName) {
133 StringRef MachOLinkingContext::nameFromArch(Arch arch) {
159 bool MachOLinkingContext::isThinObjectFile(StringRef path, Arch &arch) {
395 StringRef MachOLinkingContext::binderSymbolName() const {
399 bool MachOLinkingContext::minOS(StringRef mac, StringRef iOS) const {
442 bool MachOLinkingContext::pathExists(StringRef path) const {
453 bool MachOLinkingContext::fileExists(StringRef path) const {
470 void MachOLinkingContext::addRpath(StringRef rpath) {
474 void MachOLinkingContext::addModifiedSearchDir(StringRef libPath,
502 void MachOLinkingContext::addFrameworkSearchDir(StringRef fwPath,
530 llvm::Optional<StringRef>
531 MachOLinkingContext::searchDirForLibrary(StringRef path,
532 StringRef libName) const {
564 llvm::Optional<StringRef>
565 MachOLinkingContext::searchLibrary(StringRef libName) const {
567 for (StringRef dir : searchDirs()) {
568 llvm::Optional<StringRef> searchDir = searchDirForLibrary(dir, libName);
576 llvm::Optional<StringRef>
577 MachOLinkingContext::findPathForFramework(StringRef fwName) const{
579 for (StringRef dir : frameworkDirs()) {
664 MachOLinkingContext::getMemoryBuffer(StringRef path) {
682 MachODylibFile* MachOLinkingContext::loadIndirectDylib(StringRef path) {
699 MachODylibFile* MachOLinkingContext::findIndirectDylib(StringRef path) {
706 std::pair<StringRef, StringRef> split = path.rsplit('/');
707 StringRef leafName = split.second;
716 for (StringRef sysPath : _syslibRoots) {
732 uint32_t MachOLinkingContext::dylibCurrentVersion(StringRef installName) const {
740 uint32_t MachOLinkingContext::dylibCompatVersion(StringRef installName) const {
756 dylib->loadReExportedDylibs([this] (StringRef path) -> MachODylibFile* {
786 bool MachOLinkingContext::isUpwardDylib(StringRef installName) const {
800 void MachOLinkingContext::addSectionAlignment(StringRef seg, StringRef sect,
807 StringRef seg, StringRef sect,
820 bool MachOLinkingContext::sectionAligned(StringRef seg, StringRef sect,
831 void MachOLinkingContext::addExportSymbol(StringRef sym) {
856 bool MachOLinkingContext::exportSymbolNamed(StringRef sym) const {
869 std::string MachOLinkingContext::demangle(StringRef symbolName) const {
879 StringRef nullTermSym = Twine(symbolName).toNullTerminatedStringRef(symBuff);
895 char Opcode, StringRef Path) {
904 std::error_code MachOLinkingContext::createDependencyFile(StringRef path) {
917 void MachOLinkingContext::addInputFileDependency(StringRef path) const {
921 void MachOLinkingContext::addInputFileNotFound(StringRef path) const {
925 void MachOLinkingContext::addOutputFileDependency(StringRef path) const {
929 void MachOLinkingContext::appendOrderedSymbol(StringRef symbol,
930 StringRef filename) {
947 StringRef objName = objFile->path();
948 std::pair<StringRef, StringRef> dirAndLeaf = objName.rsplit('/');
974 StringRef leftName = left->name();
975 StringRef rightName = right->name();