summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCLinkerOptimizationHint.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-02-13 02:45:17 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-02-13 02:45:17 +0000
commitdd6029fc6ee4255d2a586fc96a5f8d8e1f35804c (patch)
tree113652c00b7f3e69d99897bfb93f9e820a8ad31b /llvm/lib/MC/MCLinkerOptimizationHint.cpp
parent50128684313444334ac9820bcdaa2a1b7ed34fb1 (diff)
downloadbcm5719-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/MCLinkerOptimizationHint.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud