diff options
| author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-10-26 10:48:04 +0000 | 
|---|---|---|
| committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-10-26 10:48:04 +0000 | 
| commit | 84d005131031f8426685cd7df748508752711da7 (patch) | |
| tree | 00c6ca528a3fe74475186d784df1d19fce567ff3 /llvm/tools/llvm-mca/Views/InstructionInfoView.h | |
| parent | bde31000b19496cb700c8a6d6a5d8ae1c83a22d8 (diff) | |
| download | bcm5719-llvm-84d005131031f8426685cd7df748508752711da7.tar.gz bcm5719-llvm-84d005131031f8426685cd7df748508752711da7.zip | |
[llvm-mca] Removed dependency on mca::SourcMgr in some Views. NFC
llvm-svn: 345376
Diffstat (limited to 'llvm/tools/llvm-mca/Views/InstructionInfoView.h')
| -rw-r--r-- | llvm/tools/llvm-mca/Views/InstructionInfoView.h | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/llvm/tools/llvm-mca/Views/InstructionInfoView.h b/llvm/tools/llvm-mca/Views/InstructionInfoView.h index 435c058d824..f7bbe6147d7 100644 --- a/llvm/tools/llvm-mca/Views/InstructionInfoView.h +++ b/llvm/tools/llvm-mca/Views/InstructionInfoView.h @@ -35,8 +35,9 @@  #ifndef LLVM_TOOLS_LLVM_MCA_INSTRUCTIONINFOVIEW_H  #define LLVM_TOOLS_LLVM_MCA_INSTRUCTIONINFOVIEW_H -#include "SourceMgr.h"  #include "Views/View.h" +#include "llvm/ADT/ArrayRef.h" +#include "llvm/MC/MCInst.h"  #include "llvm/MC/MCInstPrinter.h"  #include "llvm/MC/MCInstrInfo.h"  #include "llvm/MC/MCSubtargetInfo.h" @@ -50,13 +51,13 @@ namespace mca {  class InstructionInfoView : public View {    const llvm::MCSubtargetInfo &STI;    const llvm::MCInstrInfo &MCII; -  const SourceMgr &Source; +  llvm::ArrayRef<llvm::MCInst> Source;    llvm::MCInstPrinter &MCIP;  public:    InstructionInfoView(const llvm::MCSubtargetInfo &sti, -                      const llvm::MCInstrInfo &mcii, const SourceMgr &S, -                      llvm::MCInstPrinter &IP) +                      const llvm::MCInstrInfo &mcii, +                      llvm::ArrayRef<llvm::MCInst> S, llvm::MCInstPrinter &IP)        : STI(sti), MCII(mcii), Source(S), MCIP(IP) {}    void printView(llvm::raw_ostream &OS) const override; | 

