/frameworks/compile/mclinker/tools/mcld/ |
D | Main.cpp | 106 mcld::LinkerScript script_; 108 mcld::LinkerConfig config_; 110 mcld::Module module_; 112 mcld::IRBuilder ir_builder_; 114 mcld::Linker linker_; 150 std::string name(mcld::sys::fs::Path(prog_name).stem().native()); in ParseProgName() 170 if (!mcld::TargetRegistry::lookupTarget(prefix, ignored_error)) in ParseProgName() 194 mcld::error(mcld::diag::err_invalid_emulation) << emulation << "\n"; in ParseEmulation() 208 mcld::Module& module, in ConfigureOutputName() 209 mcld::LinkerConfig& config) { in ConfigureOutputName() [all …]
|
/frameworks/compile/mclinker/lib/Script/ |
D | OutputSectDesc.cpp | 23 namespace mcld { namespace 42 mcld::outs() << m_Name << "\t"; in dump() 46 mcld::outs() << "\t"; in dump() 51 mcld::outs() << "(NOLOAD)"; in dump() 54 mcld::outs() << "(DSECT)"; in dump() 57 mcld::outs() << "(COPY)"; in dump() 60 mcld::outs() << "(INFO)"; in dump() 63 mcld::outs() << "(OVERLAY)"; in dump() 68 mcld::outs() << ":\n"; in dump() 71 mcld::outs() << "\tAT ( "; in dump() [all …]
|
D | InputSectDesc.cpp | 18 namespace mcld { namespace 37 mcld::outs() << "KEEP ("; in dump() 41 mcld::outs() << "SORT ("; in dump() 43 mcld::outs() << m_Spec.file().name(); in dump() 46 mcld::outs() << "("; in dump() 49 mcld::outs() << "EXCLUDE_FILE ("; in dump() 54 mcld::outs() << (*it)->name() << " "; in dump() 56 mcld::outs() << ")"; in dump() 69 mcld::outs() << "SORT ("; in dump() 72 mcld::outs() << "SORT_BY_ALIGNMENT ("; in dump() [all …]
|
D | OutputFormatCmd.cpp | 12 namespace mcld { namespace 35 mcld::outs() << "OUTPUT_FORMAT ( "; in dump() 39 mcld::outs() << " , "; in dump() 40 mcld::outs() << m_FormatList[i]; in dump() 42 mcld::outs() << " )\n"; in dump()
|
/frameworks/compile/mclinker/include/mcld/Support/ |
D | MsgHandling.h | 13 namespace mcld { 41 inline mcld::MsgHandler mcld::unreachable(unsigned int pID) { in unreachable() 45 inline mcld::MsgHandler mcld::fatal(unsigned int pID) { in fatal() 49 inline mcld::MsgHandler mcld::error(unsigned int pID) { in error() 53 inline mcld::MsgHandler mcld::warning(unsigned int pID) { in warning() 57 inline mcld::MsgHandler mcld::debug(unsigned int pID) { in debug() 61 inline mcld::MsgHandler mcld::note(unsigned int pID) { in note() 65 inline mcld::MsgHandler mcld::ignore(unsigned int pID) { in ignore()
|
D | TargetRegistry.h | 25 namespace mcld { 32 typedef std::list<mcld::Target*> TargetListTy; 62 static void RegisterEmulation(mcld::Target& T, in RegisterEmulation() 63 mcld::Target::EmulationFnTy Fn) { in RegisterEmulation() 73 static void RegisterTargetLDBackend(mcld::Target& T, in RegisterTargetLDBackend() 74 mcld::Target::TargetLDBackendCtorTy Fn) { in RegisterTargetLDBackend() 85 mcld::Target& T, in RegisterDiagnosticLineInfo() 86 mcld::Target::DiagnosticLineInfoCtorTy Fn) { in RegisterDiagnosticLineInfo() 95 static const mcld::Target* lookupTarget(const std::string& pTriple, 106 static const mcld::Target* lookupTarget(const std::string& pArchName, [all …]
|
D | RealPath.h | 15 namespace mcld { 52 struct less<mcld::sys::fs::RealPath> 53 : public binary_function<mcld::sys::fs::RealPath, 54 mcld::sys::fs::RealPath, 56 bool operator()(const mcld::sys::fs::RealPath& pX, 57 const mcld::sys::fs::RealPath& pY) const {
|
/frameworks/compile/mclinker/unittests/ |
D | ELFReaderTest.h | 21 namespace mcld { 43 mcld::Input* m_pInput; 44 mcld::LinkerConfig* m_pConfig; 45 mcld::LinkerScript* m_pScript; 46 mcld::GNUInfo* m_pInfo; 47 mcld::GNULDBackend* m_pLDBackend; 48 mcld::ELFReaderIF* m_pELFReader; 49 mcld::Module* m_pModule; 50 mcld::IRBuilder* m_pIRBuilder; 51 mcld::ELFObjectReader* m_pELFObjReader;
|
D | InputTreeTest.h | 16 namespace mcld { 45 mcld::LinkerConfig* m_pConfig; 47 mcld::InputFactory* m_pAlloc; 48 mcld::InputBuilder* m_pBuilder; 49 mcld::MemoryAreaFactory m_MemFactory; 50 mcld::ContextFactory m_ContextFactory; 52 mcld::InputTree* m_pTestee;
|
D | StaticResolverTest.cpp | 17 using namespace mcld; 53 ASSERT_TRUE(mcld::ResolveInfo::Define == new_sym->desc()); in TEST_F() 54 ASSERT_TRUE(mcld::ResolveInfo::Define == old_sym->desc()); in TEST_F() 55 ASSERT_TRUE(mcld::ResolveInfo::define_flag == new_sym->info()); in TEST_F() 56 ASSERT_TRUE(mcld::ResolveInfo::define_flag == old_sym->info()); in TEST_F() 78 ASSERT_TRUE(mcld::ResolveInfo::Global == new_sym->binding()); in TEST_F() 79 ASSERT_TRUE(mcld::ResolveInfo::Global == old_sym->binding()); in TEST_F() 80 ASSERT_TRUE(mcld::ResolveInfo::Undefined == new_sym->desc()); in TEST_F() 81 ASSERT_TRUE(mcld::ResolveInfo::Define == old_sym->desc()); in TEST_F() 105 ASSERT_TRUE(mcld::ResolveInfo::Global == new_sym->binding()); in TEST_F() [all …]
|
/frameworks/compile/mclinker/lib/Target/X86/ |
D | X86Diagnostic.cpp | 13 namespace mcld { namespace 17 DiagnosticLineInfo* createX86DiagLineInfo(const mcld::Target& pTarget, in createX86DiagLineInfo() 29 mcld::TargetRegistry::RegisterDiagnosticLineInfo(mcld::TheX86_32Target, in MCLDInitializeX86DiagnosticLineInfo() 30 mcld::createX86DiagLineInfo); in MCLDInitializeX86DiagnosticLineInfo() 31 mcld::TargetRegistry::RegisterDiagnosticLineInfo(mcld::TheX86_64Target, in MCLDInitializeX86DiagnosticLineInfo() 32 mcld::createX86DiagLineInfo); in MCLDInitializeX86DiagnosticLineInfo()
|
D | X86Emulation.cpp | 15 namespace mcld { namespace 69 mcld::TargetRegistry::RegisterEmulation(mcld::TheX86_32Target, in MCLDInitializeX86Emulation() 70 mcld::emulateX86LD); in MCLDInitializeX86Emulation() 71 mcld::TargetRegistry::RegisterEmulation(mcld::TheX86_64Target, in MCLDInitializeX86Emulation() 72 mcld::emulateX86LD); in MCLDInitializeX86Emulation()
|
/frameworks/compile/mclinker/lib/Target/ARM/ |
D | ARMDiagnostic.cpp | 13 namespace mcld { namespace 17 DiagnosticLineInfo* createARMDiagLineInfo(const mcld::Target& pTarget, in createARMDiagLineInfo() 29 mcld::TargetRegistry::RegisterDiagnosticLineInfo(mcld::TheARMTarget, in MCLDInitializeARMDiagnosticLineInfo() 30 mcld::createARMDiagLineInfo); in MCLDInitializeARMDiagnosticLineInfo() 31 mcld::TargetRegistry::RegisterDiagnosticLineInfo(mcld::TheThumbTarget, in MCLDInitializeARMDiagnosticLineInfo() 32 mcld::createARMDiagLineInfo); in MCLDInitializeARMDiagnosticLineInfo()
|
D | ARMEmulation.cpp | 15 namespace mcld { namespace 68 mcld::TargetRegistry::RegisterEmulation(mcld::TheARMTarget, in MCLDInitializeARMEmulation() 69 mcld::emulateARMLD); in MCLDInitializeARMEmulation() 70 mcld::TargetRegistry::RegisterEmulation(mcld::TheThumbTarget, in MCLDInitializeARMEmulation() 71 mcld::emulateARMLD); in MCLDInitializeARMEmulation()
|
/frameworks/compile/mclinker/lib/Target/Mips/ |
D | MipsDiagnostic.cpp | 19 mcld::DiagnosticLineInfo* createMipsDiagLineInfo(const mcld::Target& pTarget, in createMipsDiagLineInfo() 21 return new mcld::DWARFLineInfo(); in createMipsDiagLineInfo() 30 mcld::TargetRegistry::RegisterDiagnosticLineInfo(mcld::TheMipselTarget, in MCLDInitializeMipsDiagnosticLineInfo() 32 mcld::TargetRegistry::RegisterDiagnosticLineInfo(mcld::TheMips64elTarget, in MCLDInitializeMipsDiagnosticLineInfo()
|
D | MipsEmulation.cpp | 15 namespace mcld { namespace 63 mcld::TargetRegistry::RegisterEmulation(mcld::TheMipselTarget, in MCLDInitializeMipsEmulation() 64 mcld::emulateMipsLD); in MCLDInitializeMipsEmulation() 65 mcld::TargetRegistry::RegisterEmulation(mcld::TheMips64elTarget, in MCLDInitializeMipsEmulation() 66 mcld::emulateMipsLD); in MCLDInitializeMipsEmulation()
|
/frameworks/compile/mclinker/lib/Core/ |
D | Linker.cpp | 32 namespace mcld { namespace 108 mcld::outs() << "** name\ttype\tpath\tsize (" in normalize() 114 mcld::outs() << counter++ << " * " << (*input)->name(); in normalize() 117 mcld::outs() << "\tarchive\t("; in normalize() 120 mcld::outs() << "\tobject\t("; in normalize() 123 mcld::outs() << "\tshared\t("; in normalize() 126 mcld::outs() << "\tscript\t("; in normalize() 129 mcld::outs() << "\textern\t("; in normalize() 135 mcld::outs() << (*input)->path() << ")\n"; in normalize() 261 case mcld::LinkerConfig::Unknown: in emit() [all …]
|
D | Environment.cpp | 12 void mcld::Initialize() { in Initialize() 18 mcld::InitializeAllTargets(); in Initialize() 19 mcld::InitializeAllEmulations(); in Initialize() 20 mcld::InitializeAllDiagnostics(); in Initialize() 25 void mcld::Finalize() { in Finalize()
|
/frameworks/compile/mclinker/lib/Support/ |
D | FileSystem.cpp | 16 bool mcld::sys::fs::exists(const Path& pPath) { in exists() 17 mcld::sys::fs::FileStatus file_status; in exists() 18 mcld::sys::fs::detail::status(pPath, file_status); in exists() 19 return (file_status.type() != mcld::sys::fs::StatusError) && in exists() 20 (file_status.type() != mcld::sys::fs::FileNotFound); in exists() 23 bool mcld::sys::fs::is_directory(const Path& pPath) { in is_directory() 26 return (file_status.type() == mcld::sys::fs::DirectoryFile); in is_directory()
|
/frameworks/compile/mclinker/lib/Target/AArch64/ |
D | AArch64Diagnostic.cpp | 13 namespace mcld { namespace 18 DiagnosticLineInfo* createAArch64DiagLineInfo(const mcld::Target& pTarget, in createAArch64DiagLineInfo() 30 mcld::TargetRegistry::RegisterDiagnosticLineInfo( in MCLDInitializeAArch64DiagnosticLineInfo() 31 mcld::TheAArch64Target, mcld::createAArch64DiagLineInfo); in MCLDInitializeAArch64DiagnosticLineInfo()
|
/frameworks/compile/mclinker/lib/Target/X86/TargetInfo/ |
D | X86TargetInfo.cpp | 12 namespace mcld { namespace 14 mcld::Target TheX86_32Target; 15 mcld::Target TheX86_64Target; 19 mcld::RegisterTarget<llvm::Triple::x86> X(TheX86_32Target, "x86"); in MCLDInitializeX86LDTargetInfo() 20 mcld::RegisterTarget<llvm::Triple::x86_64> Y(TheX86_64Target, "x86-64"); in MCLDInitializeX86LDTargetInfo()
|
/frameworks/compile/mclinker/lib/Target/ARM/TargetInfo/ |
D | ARMTargetInfo.cpp | 12 namespace mcld { namespace 14 mcld::Target TheARMTarget; 15 mcld::Target TheThumbTarget; 19 mcld::RegisterTarget<llvm::Triple::arm> X(TheARMTarget, "arm"); in MCLDInitializeARMLDTargetInfo() 20 mcld::RegisterTarget<llvm::Triple::thumb> Y(TheThumbTarget, "thumb"); in MCLDInitializeARMLDTargetInfo()
|
/frameworks/compile/mclinker/lib/Target/Mips/TargetInfo/ |
D | MipsTargetInfo.cpp | 12 namespace mcld { namespace 14 mcld::Target TheMipselTarget; 15 mcld::Target TheMips64elTarget; 18 mcld::RegisterTarget<llvm::Triple::mipsel> X1(TheMipselTarget, "mipsel"); in MCLDInitializeMipsLDTargetInfo() 19 mcld::RegisterTarget<llvm::Triple::mips64el> X2(TheMips64elTarget, in MCLDInitializeMipsLDTargetInfo()
|
/frameworks/compile/mclinker/include/mcld/Script/ |
D | ScriptScanner.h | 22 mcld::ScriptParser::token_type mcld::ScriptScanner::lex( \ 23 mcld::ScriptParser::semantic_type* yylval, \ 24 mcld::ScriptParser::location_type* yylloc, \ 25 const mcld::ScriptFile& pScriptFile) 32 namespace mcld {
|
/frameworks/compile/mclinker/lib/LD/ |
D | ELFReader.cpp | 31 namespace mcld { namespace 97 st_name = mcld::bswap32(symtab[idx].st_name); in readSymbols() 98 st_value = mcld::bswap32(symtab[idx].st_value); in readSymbols() 99 st_size = mcld::bswap32(symtab[idx].st_size); in readSymbols() 100 st_shndx = mcld::bswap16(symtab[idx].st_shndx); in readSymbols() 274 return (mcld::bswap16(hdr->e_machine) == target().getInfo().machine()); in isMyMachine() 285 type = mcld::bswap16(hdr->e_type); in fileType() 319 shoff = mcld::bswap32(ehdr->e_shoff); in readSectionHeaders() 320 shentsize = mcld::bswap16(ehdr->e_shentsize); in readSectionHeaders() 321 shnum = mcld::bswap16(ehdr->e_shnum); in readSectionHeaders() [all …]
|