diff options
author | Cyndy Ishida <cyndy_ishida@apple.com> | 2024-01-26 16:12:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-26 16:12:50 -0800 |
commit | d9a9872ec4760762fdc467ef283cea302a3742e5 (patch) | |
tree | 21ee19095654f75e1b4b6e3cc18bea6f12e50b68 /llvm/lib/Object | |
parent | 3bece3d72d1323af6b2418b13281e66b583f25b3 (diff) | |
download | llvm-d9a9872ec4760762fdc467ef283cea302a3742e5.zip llvm-d9a9872ec4760762fdc467ef283cea302a3742e5.tar.gz llvm-d9a9872ec4760762fdc467ef283cea302a3742e5.tar.bz2 |
[TextAPI] Rename SymbolKind to EncodeKind (#79622)
A distinction that doesn't _usually_ matter is that the
MachO::SymbolKind is really a mapping of entries in TBD files not
symbols. To better understand this, rename the enum so it represents an
encoding mapped to TBDs as opposed to symbols alone.
For example, it can be a bit confusing that "GlobalSymbol" is a enum
value when all of those values can represent a GlobalSymbol.
Diffstat (limited to 'llvm/lib/Object')
-rw-r--r-- | llvm/lib/Object/TapiFile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Object/TapiFile.cpp b/llvm/lib/Object/TapiFile.cpp index fcf6154..4eaacc4 100644 --- a/llvm/lib/Object/TapiFile.cpp +++ b/llvm/lib/Object/TapiFile.cpp @@ -56,11 +56,11 @@ TapiFile::TapiFile(MemoryBufferRef Source, const InterfaceFile &Interface, continue; switch (Symbol->getKind()) { - case SymbolKind::GlobalSymbol: + case EncodeKind::GlobalSymbol: Symbols.emplace_back(StringRef(), Symbol->getName(), getFlags(Symbol), ::getType(Symbol)); break; - case SymbolKind::ObjectiveCClass: + case EncodeKind::ObjectiveCClass: if (Interface.getPlatforms().count(PLATFORM_MACOS) && Arch == AK_i386) { Symbols.emplace_back(ObjC1ClassNamePrefix, Symbol->getName(), getFlags(Symbol), ::getType(Symbol)); @@ -71,11 +71,11 @@ TapiFile::TapiFile(MemoryBufferRef Source, const InterfaceFile &Interface, getFlags(Symbol), ::getType(Symbol)); } break; - case SymbolKind::ObjectiveCClassEHType: + case EncodeKind::ObjectiveCClassEHType: Symbols.emplace_back(ObjC2EHTypePrefix, Symbol->getName(), getFlags(Symbol), ::getType(Symbol)); break; - case SymbolKind::ObjectiveCInstanceVariable: + case EncodeKind::ObjectiveCInstanceVariable: Symbols.emplace_back(ObjC2IVarPrefix, Symbol->getName(), getFlags(Symbol), ::getType(Symbol)); break; |