From 79565ed87fe3f990fbf6df86bd1505c8083dbfe5 Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Wed, 14 Dec 2022 13:50:37 -0500 Subject: [PATCH] Add swift:: in a couple of places that don't have using namespace swift (affects sourcekit-lsp) --- stdlib/public/runtime/ImageInspectionCommon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/public/runtime/ImageInspectionCommon.cpp b/stdlib/public/runtime/ImageInspectionCommon.cpp index f692223d59428..6461941f95d88 100644 --- a/stdlib/public/runtime/ImageInspectionCommon.cpp +++ b/stdlib/public/runtime/ImageInspectionCommon.cpp @@ -190,7 +190,7 @@ const swift::MetadataSections *swift_getMetadataSection(size_t index) { SWIFT_RUNTIME_EXPORT const char * swift_getMetadataSectionName(const swift::MetadataSections *section) { - if (auto info = SymbolInfo::lookup(section)) { + if (auto info = swift::SymbolInfo::lookup(section)) { if (info->getFilename()) { return info->getFilename(); } @@ -202,7 +202,7 @@ SWIFT_RUNTIME_EXPORT void swift_getMetadataSectionBaseAddress(const swift::MetadataSections *section, void const **out_actual, void const **out_expected) { - if (auto info = SymbolInfo::lookup(section)) { + if (auto info = swift::SymbolInfo::lookup(section)) { *out_actual = info->getBaseAddress(); } else { *out_actual = nullptr;