Treat N_AST symbol table entries like N_OSO entries and don't emit them in the linked binary.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/tools/dsymutil/MachOUtils.cpp | ||
---|---|---|
167 | Previously the code below would filter out N_OSO entries, relying on the fact that N_OSO entries come after N_SO entries. That means that technically the N_OSO could be omitted here, but I think this is much clearer. |
llvm/tools/dsymutil/MachOUtils.cpp | ||
---|---|---|
167 | It's not only the N_OSO entries. The debugging entries are somewhat hierarchical and the top-level element is N_SO. An N_SO with a filename opens a debugging scope and another one without a name closes it. We don't transfer anything that is in the debug scope (N_OSO, N_FUN, N_ENSYM, N_BNSYM in the example I'm looking at). |
llvm/tools/dsymutil/MachOUtils.cpp | ||
---|---|---|
167 | So would you prefer to add a comment below describing this and removing it from the if clause? |
llvm/tools/dsymutil/MachOUtils.cpp | ||
---|---|---|
167 | Yep, I think so |
Previously the code below would filter out N_OSO entries, relying on the fact that N_OSO entries come after N_SO entries. That means that technically the N_OSO could be omitted here, but I think this is much clearer.