Chromium Code Reviews| Index: src/IceTargetLowering.h |
| diff --git a/src/IceTargetLowering.h b/src/IceTargetLowering.h |
| index 2dda5c5126311ece3edf2416a43aded20ebdeee9..a9d3979dd8621a81726e8bc45b22eb676132ec5d 100644 |
| --- a/src/IceTargetLowering.h |
| +++ b/src/IceTargetLowering.h |
| @@ -7,11 +7,13 @@ |
| // |
| //===----------------------------------------------------------------------===// |
| // |
| -// This file declares the TargetLowering and LoweringContext |
| -// classes. TargetLowering is an abstract class used to drive the |
| -// translation/lowering process. LoweringContext maintains a |
| -// context for lowering each instruction, offering conveniences such |
| -// as iterating over non-deleted instructions. |
| +// This file declares the TargetLowering, LoweringContext, and |
| +// TargetDataLowering classes. TargetLowering is an abstract class |
| +// used to drive the translation/lowering process. LoweringContext |
| +// maintains a context for lowering each instruction, offering |
| +// conveniences such as iterating over non-deleted instructions. |
| +// TargetDataLowering is an abstract class used to drive the |
| +// lowering/emission of global initializers. |
|
jvoung (off chromium)
2015/02/11 16:56:01
and constant pools
Jim Stichnoth
2015/02/11 21:52:58
Done.
|
| // |
| //===----------------------------------------------------------------------===// |
| @@ -247,12 +249,12 @@ class TargetDataLowering { |
| TargetDataLowering &operator=(const TargetDataLowering &) = delete; |
| public: |
| - static TargetDataLowering *createLowering(GlobalContext *Ctx); |
| + static std::unique_ptr<TargetDataLowering> createLowering(GlobalContext *Ctx); |
| virtual ~TargetDataLowering(); |
| virtual void lowerGlobal(const VariableDeclaration &Var) const = 0; |
| virtual void lowerGlobalsELF(const VariableDeclarationList &Vars) const = 0; |
| - virtual void lowerConstants(GlobalContext *Ctx) const = 0; |
| + virtual void lowerConstants() const = 0; |
| protected: |
| TargetDataLowering(GlobalContext *Ctx) : Ctx(Ctx) {} |