aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/TapiFile.cpp
diff options
context:
space:
mode:
authorCyndy Ishida <cyndy_ishida@apple.com>2021-06-23 08:55:39 -0700
committerCyndy Ishida <cyndy_ishida@apple.com>2021-06-23 11:21:00 -0700
commit56709b869570f7825d335d633bc829511980c253 (patch)
treeae878c4e5aeb320333718f921a726601dd320afe /llvm/lib/Object/TapiFile.cpp
parent00c93d8801f13058a4cd9b70a2747b5a9908e2a4 (diff)
downloadllvm-56709b869570f7825d335d633bc829511980c253.zip
llvm-56709b869570f7825d335d633bc829511980c253.tar.gz
llvm-56709b869570f7825d335d633bc829511980c253.tar.bz2
[TextAPI] add symbol name prefixes to central location, NFC
These prefixes are used for printing the symbols coming from tbd files and they were redundant across locations
Diffstat (limited to 'llvm/lib/Object/TapiFile.cpp')
-rw-r--r--llvm/lib/Object/TapiFile.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Object/TapiFile.cpp b/llvm/lib/Object/TapiFile.cpp
index 7a36199..6b57626 100644
--- a/llvm/lib/Object/TapiFile.cpp
+++ b/llvm/lib/Object/TapiFile.cpp
@@ -14,17 +14,12 @@
#include "llvm/ADT/StringRef.h"
#include "llvm/Object/Error.h"
#include "llvm/Support/MemoryBuffer.h"
+#include "llvm/TextAPI/Symbol.h"
using namespace llvm;
using namespace MachO;
using namespace object;
-static constexpr StringLiteral ObjC1ClassNamePrefix = ".objc_class_name_";
-static constexpr StringLiteral ObjC2ClassNamePrefix = "_OBJC_CLASS_$_";
-static constexpr StringLiteral ObjC2MetaClassNamePrefix = "_OBJC_METACLASS_$_";
-static constexpr StringLiteral ObjC2EHTypePrefix = "_OBJC_EHTYPE_$_";
-static constexpr StringLiteral ObjC2IVarPrefix = "_OBJC_IVAR_$_";
-
static uint32_t getFlags(const Symbol *Sym) {
uint32_t Flags = BasicSymbolRef::SF_Global;
if (Sym->isUndefined())