diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-02-13 02:45:17 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-02-13 02:45:17 +0000 |
commit | dd6029fc6ee4255d2a586fc96a5f8d8e1f35804c (patch) | |
tree | 113652c00b7f3e69d99897bfb93f9e820a8ad31b /llvm/lib/MC/MCLabel.cpp | |
parent | 50128684313444334ac9820bcdaa2a1b7ed34fb1 (diff) | |
download | bcm5719-llvm-dd6029fc6ee4255d2a586fc96a5f8d8e1f35804c.tar.gz bcm5719-llvm-dd6029fc6ee4255d2a586fc96a5f8d8e1f35804c.zip |
[unroll] Make range based for loops a bit more explicit and more
readable.
The biggest thing that was causing me problems is recognizing the
references vs. poniters here. I also found that for maps naming the loop
variable as KeyValue helps make it obvious why you don't actually use it
directly. Finally, using 'auto' instead of 'User *' doesn't seem like
a good tradeoff. Much like with the other cases, I like to know its
a pointer, and 'User' is just as long and tells the reader a lot more.
llvm-svn: 229033
Diffstat (limited to 'llvm/lib/MC/MCLabel.cpp')
0 files changed, 0 insertions, 0 deletions