Skip to content

Commit a091f36

Browse files
zhaoqi5SixWeining
andauthored
address comment
Co-authored-by: Lu Weining <[email protected]>
1 parent c6679a6 commit a091f36

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2121,10 +2121,9 @@ ObjectFileELF::ParseSymbols(Symtab *symtab, user_id_t start_id,
21212121
// linkage.
21222122
// LoongArch64 always uses symbols for relocations, so temporary symbols
21232123
// starting with ".L" should be preserved.
2124-
if (arch.GetMachine() != llvm::Triple::loongarch64) {
2125-
if (llvm::StringRef(symbol_name).starts_with(".L"))
2126-
continue;
2127-
}
2124+
if (llvm::StringRef(symbol_name).starts_with(".L") &&
2125+
arch.GetMachine() != llvm::Triple::loongarch64)
2126+
continue;
21282127
// No need to add non-section symbols that have no names
21292128
if (symbol.getType() != STT_SECTION &&
21302129
(symbol_name == nullptr || symbol_name[0] == '\0'))

0 commit comments

Comments
 (0)