Skip to content

Commit d110ce3

Browse files
committed
swap anon namespacing with static
1 parent d5e9757 commit d110ce3

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

llvm/lib/TextAPI/RecordVisitor.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@ RecordVisitor::~RecordVisitor() {}
1919
void RecordVisitor::visitObjCInterface(const ObjCInterfaceRecord &) {}
2020
void RecordVisitor::visitObjCCategory(const ObjCCategoryRecord &) {}
2121

22-
namespace {
23-
bool shouldSkipRecord(const Record &R, const bool RecordUndefs) {
22+
static bool shouldSkipRecord(const Record &R, const bool RecordUndefs) {
2423
if (R.isExported())
2524
return false;
2625

2726
// Skip non exported symbols unless for flat namespace libraries.
2827
return !(RecordUndefs && R.isUndefined());
2928
}
30-
} // namespace
3129

3230
void SymbolConverter::visitGlobal(const GlobalRecord &GR) {
3331
auto [SymName, SymKind] = parseSymbol(GR.getName(), GR.getFlags());

llvm/lib/TextAPI/RecordsSlice.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,8 @@ void RecordsSlice::visit(RecordVisitor &V) const {
263263
V.visitObjCCategory(*Cat.second);
264264
}
265265

266-
namespace {
267-
268-
std::unique_ptr<InterfaceFile> createInterfaceFile(const Records &Slices,
269-
StringRef InstallName) {
266+
static std::unique_ptr<InterfaceFile>
267+
createInterfaceFile(const Records &Slices, StringRef InstallName) {
270268
// Pickup symbols first.
271269
auto Symbols = std::make_unique<SymbolSet>();
272270
for (auto &S : Slices) {
@@ -319,8 +317,6 @@ std::unique_ptr<InterfaceFile> createInterfaceFile(const Records &Slices,
319317
return File;
320318
}
321319

322-
} // namespace
323-
324320
std::unique_ptr<InterfaceFile>
325321
llvm::MachO::convertToInterfaceFile(const Records &Slices) {
326322
std::unique_ptr<InterfaceFile> File;

0 commit comments

Comments
 (0)