Skip to content
Commit 43331461 authored by Scott Linder's avatar Scott Linder
Browse files

[NFC][AsmPrinter] Use std::visit in constructVariableDIEImpl

This potentially has a slightly positive performance impact, as
std::visit can be implemented as a `switch`-like jump rather than
a series of `if`s.

More importantly, the reader can be confident is no overlap between the
cases.

Differential Revision: https://reviews.llvm.org/D158678
parent 35e621f9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment