summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-05-16 08:37:32 +0000
committerFangrui Song <maskray@google.com>2019-05-16 08:37:32 +0000
commitddb93b637e44d28f5af6dc8633f89af28f4c6bad (patch)
treed4fa7b517d5d83dfe2449c65b47e3488c62c7292 /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
parent3e92df3e39592f0a18b7bc7c66c0ca18cd621897 (diff)
downloadbcm5719-llvm-ddb93b637e44d28f5af6dc8633f89af28f4c6bad.tar.gz
bcm5719-llvm-ddb93b637e44d28f5af6dc8633f89af28f4c6bad.zip
Simplify ArchSpec::IsMIPS()
llvm-svn: 360865
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
-rw-r--r--lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
index ff499dbad8c..0040599c1b5 100644
--- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
@@ -2185,11 +2185,7 @@ unsigned ObjectFileELF::ParseSymbols(Symtab *symtab, user_id_t start_id,
* class
* accordingly.
*/
- const llvm::Triple::ArchType llvm_arch = arch.GetMachine();
- if (llvm_arch == llvm::Triple::mips ||
- llvm_arch == llvm::Triple::mipsel ||
- llvm_arch == llvm::Triple::mips64 ||
- llvm_arch == llvm::Triple::mips64el) {
+ if (arch.IsMIPS()) {
if (IS_MICROMIPS(symbol.st_other))
m_address_class_map[symbol.st_value] = AddressClass::eCodeAlternateISA;
else if ((symbol.st_value & 1) && (symbol_type == eSymbolTypeCode)) {
OpenPOWER on IntegriCloud