diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-10-15 18:32:34 -0400 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-10-22 21:32:28 -0400 |
commit | 168db92465c504974274302a6a1a5d4a1580ccfe (patch) | |
tree | 5350768359d06854b577e0d3f74bdd8a5346e011 /llvm/lib/MC/StringTableBuilder.cpp | |
parent | b6c6daa95d3aa2206d5a42b46793226f181c3e44 (diff) | |
download | llvm-168db92465c504974274302a6a1a5d4a1580ccfe.zip llvm-168db92465c504974274302a6a1a5d4a1580ccfe.tar.gz llvm-168db92465c504974274302a6a1a5d4a1580ccfe.tar.bz2 |
SourceManager: Change SourceManager::isMainFile to take a FileEntry, NFC
`SourceManager::isMainFile` does not use the filename, so it doesn't
need the full `FileEntryRef`; in fact, it's misleading to take the name
because that makes it look relevant. Simplify the API, and in the
process remove some calls to `FileEntryRef::FileEntryRef` in the unit
tests (which were blocking making that private to `SourceManager`).
Differential Revision: https://reviews.llvm.org/D89507
Diffstat (limited to 'llvm/lib/MC/StringTableBuilder.cpp')
0 files changed, 0 insertions, 0 deletions