diff options
author | Michael Buch <michaelbuch12@gmail.com> | 2024-04-03 00:28:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 00:28:12 +0100 |
commit | e61d6b74ddf28df196484f6251271f543ae902ab (patch) | |
tree | 9e8c006fc624b355fc7c4bedf6dc3000e8b24198 /llvm/lib/Object/COFFObjectFile.cpp | |
parent | 84ae8cb4af9abafe9f45e69744607aadb38d649a (diff) | |
download | llvm-e61d6b74ddf28df196484f6251271f543ae902ab.zip llvm-e61d6b74ddf28df196484f6251271f543ae902ab.tar.gz llvm-e61d6b74ddf28df196484f6251271f543ae902ab.tar.bz2 |
[lldb][SymbolFileDWARFDebugMap] Introduce enum to indicate whether to continue iteration of object files (#87344)
This patch introduces a new `IterationMarker` enum (happy to take
alternative name suggestions), which callbacks, like the one in
`SymbolFileDWARFDebugMap::ForEachSymbolFile`, can return in order to
indicate whether the caller should continue iterating or bail.
For now this patch just changes the `ForEachSymbolFile` callback to use
this new enum. In the future we could change the various
`DWARFIndex::GetXXX` callbacks to do the same.
This makes the callbacks easier to read and hopefully reduces the chance
of bugs like https://github.com/llvm/llvm-project/pull/87177.
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions