diff options
| author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-08-29 22:32:07 +0000 |
|---|---|---|
| committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2017-08-29 22:32:07 +0000 |
| commit | 900b633560ab96e37ea1ecfea3c3603c887aa2c3 (patch) | |
| tree | a8e4bc656d66f0d9e3c6985511505722d4aad621 /llvm/lib/CodeGen/Spiller.h | |
| parent | 4731ad81c77dc202309010a607d7728d0b47efa4 (diff) | |
| download | bcm5719-llvm-900b633560ab96e37ea1ecfea3c3603c887aa2c3.tar.gz bcm5719-llvm-900b633560ab96e37ea1ecfea3c3603c887aa2c3.zip | |
[CodeGen] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC).
llvm-svn: 312053
Diffstat (limited to 'llvm/lib/CodeGen/Spiller.h')
| -rw-r--r-- | llvm/lib/CodeGen/Spiller.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/Spiller.h b/llvm/lib/CodeGen/Spiller.h index 2fd0219b3bf..330ee81342b 100644 --- a/llvm/lib/CodeGen/Spiller.h +++ b/llvm/lib/CodeGen/Spiller.h @@ -1,4 +1,4 @@ -//===--- llvm/CodeGen/Spiller.h - Spiller -*- C++ -*-----------------------===// +//===- llvm/CodeGen/Spiller.h - Spiller -------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -12,11 +12,10 @@ namespace llvm { - class LiveRangeEdit; - class MachineFunction; - class MachineFunctionPass; - class VirtRegMap; - class LiveIntervals; +class LiveRangeEdit; +class MachineFunction; +class MachineFunctionPass; +class VirtRegMap; /// Spiller interface. /// @@ -24,12 +23,14 @@ namespace llvm { /// demand. class Spiller { virtual void anchor(); + public: virtual ~Spiller() = 0; /// spill - Spill the LRE.getParent() live interval. virtual void spill(LiveRangeEdit &LRE) = 0; - virtual void postOptimization(){}; + + virtual void postOptimization() {} }; /// Create and return a spiller that will insert spill code directly instead @@ -37,6 +38,7 @@ namespace llvm { Spiller *createInlineSpiller(MachineFunctionPass &pass, MachineFunction &mf, VirtRegMap &vrm); -} -#endif +} // end namespace llvm + +#endif // LLVM_LIB_CODEGEN_SPILLER_H |

