The patch detects MIPS application specific extensions (ASE) like micromips by reading ELF header.e_flags and SHT_MIPS_ABIFLAGS section. MIPS triple does not contain ASE information like micromips, mips16, DSP, MSA etc. These can be read from header.e_flags or SHT_MIPS_ABIFLAGS section.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
A few changes as noted in inlined comments.
source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp | ||
---|---|---|
418 | Make "features_str" a "const char *". No need to construct a std::string just to pass a string argument. Or we can use llvm::StringRef objects for triple, cpu and features_str. | |
693 | pass features_str.c_str() if we switch to "const char *" as mentioned above, else it will make an llvm::StringRef implicitly. | |
source/Plugins/Disassembler/llvm/DisassemblerLLVMC.h | ||
44 | Make "features_str" a "const char *". No need to construct a std::string just to pass a string argument. Or we can use llvm::StringRef objects for triple, cpu and features_str. |
Make "features_str" a "const char *". No need to construct a std::string just to pass a string argument. Or we can use llvm::StringRef objects for triple, cpu and features_str.