aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/StringTableBuilder.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2020-10-15 18:17:17 -0400
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2020-10-22 21:30:31 -0400
commitb6c6daa95d3aa2206d5a42b46793226f181c3e44 (patch)
tree26ee736f7a23442e6a963619623692c8496f7e8f /llvm/lib/MC/StringTableBuilder.cpp
parent3091ed099f2f6a3d16dbdae7d0406f54dfc3031f (diff)
downloadllvm-b6c6daa95d3aa2206d5a42b46793226f181c3e44.zip
llvm-b6c6daa95d3aa2206d5a42b46793226f181c3e44.tar.gz
llvm-b6c6daa95d3aa2206d5a42b46793226f181c3e44.tar.bz2
SourceManager: Factor out helpers for common SLocEntry lookup pattern, NFC
Add helpers `getSLocEntryOrNull`, which handles the `Invalid` logic around `getSLocEntry`, and `getSLocEntryForFile`, which also checks for `SLocEntry::isFile`, and use them to reduce repeated code. Differential Revision: https://reviews.llvm.org/D89503
Diffstat (limited to 'llvm/lib/MC/StringTableBuilder.cpp')
0 files changed, 0 insertions, 0 deletions