Home
last modified time | relevance | path

Searched full:symbolname (Results 1 – 25 of 66) sorted by relevance

123

/external/llvm/lib/Support/
DDynamicLibrary.cpp30 void llvm::sys::DynamicLibrary::AddSymbol(StringRef symbolName, in AddSymbol() argument
33 (*ExplicitSymbols)[symbolName] = symbolValue; in AddSymbol()
84 void *DynamicLibrary::getAddressOfSymbol(const char *symbolName) { in getAddressOfSymbol() argument
87 return dlsym(Data, symbolName); in getAddressOfSymbol()
101 void *DynamicLibrary::getAddressOfSymbol(const char *symbolName) { in getAddressOfSymbol() argument
108 void *SearchForAddressOfSpecialSymbol(const char* symbolName);
111 void* DynamicLibrary::SearchForAddressOfSymbol(const char *symbolName) { in SearchForAddressOfSymbol() argument
116 StringMap<void *>::iterator i = ExplicitSymbols->find(symbolName); in SearchForAddressOfSymbol()
127 //lt_ptr ptr = lt_dlsym(*I, symbolName); in SearchForAddressOfSymbol()
128 void *ptr = dlsym(*I, symbolName); in SearchForAddressOfSymbol()
[all …]
DSearchForAddressOfSpecialSymbol.cpp20 static void *DoSearch(const char* symbolName) { in DoSearch() argument
22 extern void *SYM; if (!strcmp(symbolName, #SYM)) return &SYM in DoSearch()
55 void *SearchForAddressOfSpecialSymbol(const char* symbolName) { in SearchForAddressOfSpecialSymbol() argument
56 return DoSearch(symbolName); in SearchForAddressOfSpecialSymbol()
/external/llvm/include/llvm/Support/
DDynamicLibrary.h52 /// Searches through the library for the symbol \p symbolName. If it is
58 void *getAddressOfSymbol(const char *symbolName);
82 /// libraries for the symbol \p symbolName. If it is found, the address of
88 static void *SearchForAddressOfSymbol(const char *symbolName);
91 static void *SearchForAddressOfSymbol(const std::string &symbolName) { in SearchForAddressOfSymbol() argument
92 return SearchForAddressOfSymbol(symbolName.c_str()); in SearchForAddressOfSymbol()
95 /// This functions permanently adds the symbol \p symbolName with the
99 static void AddSymbol(StringRef symbolName, void *symbolValue);
/external/llvm/lib/Support/Windows/
DDynamicLibrary.inc126 void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
131 StringMap<void *>::iterator i = ExplicitSymbols->find(symbolName);
141 FARPROC ptr = GetProcAddress((HMODULE)*I, symbolName);
149 if (!strcmp(symbolName, #SYM)) \
152 if (!strcmp(symbolName, #SYMFROM)) \
157 if (!strcmp(symbolName, #SYM)) \
174 void *DynamicLibrary::getAddressOfSymbol(const char *symbolName) {
178 return SearchForAddressOfSymbol(symbolName);
179 return (void *)(intptr_t)GetProcAddress((HMODULE)Data, symbolName);
/external/llvm/lib/DebugInfo/Symbolize/
DSymbolize.cpp392 static StringRef demanglePE32ExternCFunc(StringRef SymbolName) { in demanglePE32ExternCFunc() argument
394 char Front = SymbolName.empty() ? '\0' : SymbolName[0]; in demanglePE32ExternCFunc()
396 SymbolName = SymbolName.drop_front(); in demanglePE32ExternCFunc()
400 size_t AtPos = SymbolName.rfind('@'); in demanglePE32ExternCFunc()
402 std::all_of(SymbolName.begin() + AtPos + 1, SymbolName.end(), in demanglePE32ExternCFunc()
404 SymbolName = SymbolName.substr(0, AtPos); in demanglePE32ExternCFunc()
409 if (SymbolName.endswith("@")) in demanglePE32ExternCFunc()
410 SymbolName = SymbolName.drop_back(); in demanglePE32ExternCFunc()
412 return SymbolName; in demanglePE32ExternCFunc()
DSymbolizableObjectFile.cpp144 StringRef SymbolName = *SymbolNameOrErr; in addSymbol() local
146 if (Module->isMachO() && SymbolName.size() > 0 && SymbolName[0] == '_') in addSymbol()
147 SymbolName = SymbolName.drop_front(); in addSymbol()
152 M.insert(std::make_pair(SD, SymbolName)); in addSymbol()
/external/deqp/framework/delibs/deutil/
DdeDynamicLibrary.c60 deFunctionPtr deDynamicLibrary_getFunction (const deDynamicLibrary* library, const char* symbolName) in deDynamicLibrary_getFunction() argument
69 DE_ASSERT(library && library->libHandle && symbolName); in deDynamicLibrary_getFunction()
70 ptr.objPtr = dlsym(library->libHandle, symbolName); in deDynamicLibrary_getFunction()
109 deFunctionPtr deDynamicLibrary_getFunction (const deDynamicLibrary* library, const char* symbolName) in deDynamicLibrary_getFunction() argument
111 DE_ASSERT(library && library->handle && symbolName); in deDynamicLibrary_getFunction()
112 return (deFunctionPtr)GetProcAddress(library->handle, symbolName); in deDynamicLibrary_getFunction()
DdeDynamicLibrary.h46 * \param symbolName Name of function symbol
51 …nctionPtr deDynamicLibrary_getFunction (const deDynamicLibrary* library, const char* symbolName);
/external/google-breakpad/src/client/mac/handler/testcases/
Dbreakpad_nlist_test.cc62 char symbolName[500]; in CompareToNM() local
64 fscanf(fd, "%s %c %s", oneNMAddr, &symbolType, symbolName); in CompareToNM()
70 symbolNames[0] = (const char*)symbolName; in CompareToNM()
74 if (!IsSymbolMoreThanOnceInDyld(symbolName)) { in CompareToNM()
82 bool BreakpadNlistTest::IsSymbolMoreThanOnceInDyld(const char *symbolName) { in IsSymbolMoreThanOnceInDyld() argument
99 if (!strcmp(multipleSymbols[i], symbolName)) { in IsSymbolMoreThanOnceInDyld()
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldELF.cpp792 Rel.SymbolName = nullptr; in findPPC64TOCSection()
1137 if (Value.SymbolName) in processSimpleRelocation()
1138 addRelocationForSymbol(RE, Value.SymbolName); in processSimpleRelocation()
1217 Value.SymbolName = TargetName.data(); in processRelocationRef()
1224 if (!Value.SymbolName) in processRelocationRef()
1225 Value.SymbolName = ""; in processRelocationRef()
1271 if (Value.SymbolName) { in processRelocationRef()
1272 addRelocationForSymbol(REmovz_g3, Value.SymbolName); in processRelocationRef()
1273 addRelocationForSymbol(REmovk_g2, Value.SymbolName); in processRelocationRef()
1274 addRelocationForSymbol(REmovk_g1, Value.SymbolName); in processRelocationRef()
[all …]
DRuntimeDyldImpl.h188 const char *SymbolName; variable
190 SymbolName(nullptr) {} in RelocationValueRef()
194 Addend == Other.Addend && SymbolName == Other.SymbolName;
203 return SymbolName < Other.SymbolName;
386 void addRelocationForSymbol(const RelocationEntry &RE, StringRef SymbolName);
DRuntimeDyldChecker.cpp811 StringRef FileName, StringRef SectionName, StringRef SymbolName, in getStubAddrFor() argument
825 auto StubOffsetItr = SymbolStubs.find(SymbolName); in getStubAddrFor()
828 ("Stub for symbol '" + SymbolName + "' not found. " in getStubAddrFor()
829 "If '" + SymbolName + "' is an internal symbol this " in getStubAddrFor()
881 std::string SymbolName = ""; in registerStubMap() local
883 if (StubMapEntry.first.SymbolName) in registerStubMap()
884 SymbolName = StubMapEntry.first.SymbolName; in registerStubMap()
893 SymbolName = GSTEntry.first(); in registerStubMap()
899 if (SymbolName != "") in registerStubMap()
900 Stubs[FileName][SectionName].StubOffsets[SymbolName] = in registerStubMap()
/external/llvm/test/Object/Inputs/COFF/
Dx86-64.yaml14 SymbolName: L.str
19 SymbolName: puts
24 SymbolName: SomeOtherFunction
40 SymbolName: '??__Ex@@YAXXZ'
Di386.yaml15 SymbolName: L_.str
20 SymbolName: _puts
25 SymbolName: _SomeOtherFunction
/external/llvm/include/llvm-c/
DSupport.h45 * libraries for the symbol \p symbolName. If it is found, the address of
50 void *LLVMSearchForAddressOfSymbol(const char *symbolName);
53 * This functions permanently adds the symbol \p symbolName with the
59 void LLVMAddSymbol(const char *symbolName, void *symbolValue);
/external/llvm/lib/ExecutionEngine/Orc/
DOrcCBindings.cpp32 const char *SymbolName) { in LLVMOrcGetMangledSymbol() argument
34 std::string Mangled = J.mangle(SymbolName); in LLVMOrcGetMangledSymbol()
89 const char *SymbolName) { in LLVMOrcGetSymbolAddress() argument
91 auto Sym = J.findSymbol(SymbolName, true); in LLVMOrcGetSymbolAddress()
/external/llvm/lib/Target/AMDGPU/MCTargetDesc/
DAMDGPUTargetStreamer.h34 virtual void EmitAMDGPUSymbolType(StringRef SymbolName, unsigned Type) = 0;
54 void EmitAMDGPUSymbolType(StringRef SymbolName, unsigned Type) override;
90 void EmitAMDGPUSymbolType(StringRef SymbolName, unsigned Type) override;
DAMDGPUTargetStreamer.cpp224 void AMDGPUTargetAsmStreamer::EmitAMDGPUSymbolType(StringRef SymbolName, in EmitAMDGPUSymbolType() argument
229 OS << "\t.amdgpu_hsa_kernel " << SymbolName << '\n' ; in EmitAMDGPUSymbolType()
323 void AMDGPUTargetELFStreamer::EmitAMDGPUSymbolType(StringRef SymbolName, in EmitAMDGPUSymbolType() argument
326 getStreamer().getContext().getOrCreateSymbol(SymbolName)); in EmitAMDGPUSymbolType()
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOX86_64.h64 if (Value.SymbolName) in processRelocationRef()
65 addRelocationForSymbol(RE, Value.SymbolName); in processRelocationRef()
134 if (Value.SymbolName) in processGOTRelocation()
135 addRelocationForSymbol(GOTRE, Value.SymbolName); in processGOTRelocation()
DRuntimeDyldMachOARM.h85 if (Value.SymbolName) in processRelocationRef()
86 addRelocationForSymbol(RE, Value.SymbolName); in processRelocationRef()
192 if (Value.SymbolName) in processBranchRelocation()
193 addRelocationForSymbol(StubRE, Value.SymbolName); in processBranchRelocation()
DRuntimeDyldMachOAArch64.h294 if (Value.SymbolName) in processRelocationRef()
295 addRelocationForSymbol(RE, Value.SymbolName); in processRelocationRef()
390 if (Value.SymbolName) in processGOTRelocation()
391 addRelocationForSymbol(GOTRE, Value.SymbolName); in processGOTRelocation()
/external/llvm/test/Object/
Dobj2yaml.test21 COFF-I386-NEXT: SymbolName: L_.str
25 COFF-I386-NEXT: SymbolName: _puts
29 COFF-I386-NEXT: SymbolName: _SomeOtherFunction
104 COFF-X86-64-NEXT: SymbolName: L.str
108 COFF-X86-64-NEXT: SymbolName: puts
112 COFF-X86-64-NEXT: SymbolName: SomeOtherFunction
127 COFF-X86-64-NEXT: SymbolName: '??__Ex@@YAXXZ'
/external/llvm/tools/llvm-readobj/
DCOFFDumper.cpp831 StringRef SymbolName; in printRelocation() local
837 SymbolName = *SymbolNameOrErr; in printRelocation()
844 W.printString("Symbol", SymbolName.empty() ? "-" : SymbolName); in printRelocation()
849 << " " << (SymbolName.empty() ? "-" : SymbolName) in printRelocation()
892 StringRef SymbolName; in printSymbol() local
893 if (Obj->getSymbolName(Symbol, SymbolName)) in printSymbol()
894 SymbolName = ""; in printSymbol()
902 W.printString("Name", SymbolName); in printSymbol()
/external/llvm/tools/llvm-pdbdump/
DLinePrinter.cpp74 bool LinePrinter::IsSymbolExcluded(llvm::StringRef SymbolName) { in IsSymbolExcluded() argument
75 return IsItemExcluded(SymbolName, IncludeSymbolFilters, ExcludeSymbolFilters); in IsSymbolExcluded()
/external/llvm/lib/Target/Hexagon/
DHexagonAsmPrinter.cpp212 std::string symbolName = // Yes, leading zeros are kept. in smallData() local
214 std::string sectionName = sectionPrefix.str() + symbolName; in smallData()
220 Sym = AP.OutContext.getOrCreateSymbol(Twine(symbolName)); in smallData()
241 StringRef SymbolName = MOSymbol->getName(); in smallData() local
242 std::string LitaName = ".CONST_" + SymbolName.str(); in smallData()

123