diff options
author | Daniel Sanders <daniel_l_sanders@apple.com> | 2018-01-29 20:46:16 +0000 |
---|---|---|
committer | Daniel Sanders <daniel_l_sanders@apple.com> | 2018-01-29 20:46:16 +0000 |
commit | 1cc575666f3c2a26d73a380d2ec0d6bfc0c8cd20 (patch) | |
tree | fb1fea39634137261b4d7b963cce1249c434d8a3 /llvm/lib/CodeGen/GlobalISel/LegalizeMutations.cpp | |
parent | 63b6a0e5bc9178115437c2c499d10116884a4581 (diff) | |
download | bcm5719-llvm-1cc575666f3c2a26d73a380d2ec0d6bfc0c8cd20.tar.gz bcm5719-llvm-1cc575666f3c2a26d73a380d2ec0d6bfc0c8cd20.zip |
[globalisel][legalizer] Change identity() to changeTo() to clarify that it changes things. NFC
Prior to committing r323681, we decided to change pick() to identity() since
it wasn't clear from the name what pick() did. However, identity() isn't a very
good name either since it implies that no changes are made. For some reason,
naming it changeTo() didn't occur to me until just after the commit. This
should resolve the lack of clarity that pick() had while still implying that
it changes the MIR.
llvm-svn: 323689
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/LegalizeMutations.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/LegalizeMutations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/LegalizeMutations.cpp b/llvm/lib/CodeGen/GlobalISel/LegalizeMutations.cpp index 961988515e5..65a0c9e62be 100644 --- a/llvm/lib/CodeGen/GlobalISel/LegalizeMutations.cpp +++ b/llvm/lib/CodeGen/GlobalISel/LegalizeMutations.cpp @@ -15,7 +15,7 @@ using namespace llvm; -LegalizeMutation LegalizeMutations::identity(unsigned TypeIdx, LLT Ty) { +LegalizeMutation LegalizeMutations::changeTo(unsigned TypeIdx, LLT Ty) { return [=](const LegalityQuery &Query) { return std::make_pair(TypeIdx, Ty); }; } |