diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2015-11-05 19:34:57 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2015-11-05 19:34:57 +0000 |
| commit | 387e66e79fc368760418f7394a6e93eeeb3f0ec8 (patch) | |
| tree | 53b9938e83bb8036fbb22192a468605c0c6eac65 /llvm/lib/CodeGen/MachineCombiner.cpp | |
| parent | 2cd0d6d625c098be61da7353315efeb356f5f499 (diff) | |
| download | bcm5719-llvm-387e66e79fc368760418f7394a6e93eeeb3f0ec8.tar.gz bcm5719-llvm-387e66e79fc368760418f7394a6e93eeeb3f0ec8.zip | |
replace MachineCombinerPattern namespace and enum with enum class; NFCI
Also, remove an enum hack where enum values were used as indexes into an array.
We may want to make this a real class to allow pattern-based queries/customization (D13417).
llvm-svn: 252196
Diffstat (limited to 'llvm/lib/CodeGen/MachineCombiner.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/MachineCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineCombiner.cpp b/llvm/lib/CodeGen/MachineCombiner.cpp index bfa5a6afc5f..11b6a79a8b1 100644 --- a/llvm/lib/CodeGen/MachineCombiner.cpp +++ b/llvm/lib/CodeGen/MachineCombiner.cpp @@ -336,7 +336,7 @@ bool MachineCombiner::combineInstructions(MachineBasicBlock *MBB) { auto &MI = *BlockIter++; DEBUG(dbgs() << "INSTR "; MI.dump(); dbgs() << "\n";); - SmallVector<MachineCombinerPattern::MC_PATTERN, 16> Patterns; + SmallVector<MachineCombinerPattern, 16> Patterns; // The motivating example is: // // MUL Other MUL_op1 MUL_op2 Other |

