[llvm-mca] Refactor class SourceMgr. NFCI
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Wed, 24 Oct 2018 15:06:27 +0000 (15:06 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Wed, 24 Oct 2018 15:06:27 +0000 (15:06 +0000)
commit7be45b0f85c81454ee65e19e5a9bc87260af39e7
tree6627a4e5d756ae751ca5bf8c3dfef66f34b19db7
parent678f43f666675811a926811f5e63904aef4d4785
[llvm-mca] Refactor class SourceMgr. NFCI

Added begin()/end() methods to allow the usage of SourceMgr in foreach loops.
With this change, method getMCInstFromIndex() (as well as a couple of other
methods) are now redundant, and can be removed from the public interface.

llvm-svn: 345147
llvm/tools/llvm-mca/Views/InstructionInfoView.cpp
llvm/tools/llvm-mca/Views/ResourcePressureView.cpp
llvm/tools/llvm-mca/Views/TimelineView.cpp
llvm/tools/llvm-mca/include/SourceMgr.h