Chromium Code Reviews| Index: src/IceCfg.h |
| diff --git a/src/IceCfg.h b/src/IceCfg.h |
| index 8e816149b6b20773fbfa89bb64ea07950c3cbb1d..43075204cf9513b7f6608f09feef17174e9cf5f3 100644 |
| --- a/src/IceCfg.h |
| +++ b/src/IceCfg.h |
| @@ -157,6 +157,19 @@ public: |
| } |
| /// @} |
| + /// \name Manages the Globals used by this CFG. |
|
Jim Stichnoth
2016/02/10 06:35:59
s/Manages/Manage/ for consistency
Also, maybe s/C
John
2016/02/10 15:41:13
Done.
|
| + /// @{ |
| + std::unique_ptr<VariableDeclarationList> getGlobalInits() { |
| + return std::move(GlobalInits); |
| + } |
| + void addGlobal(VariableDeclaration *Global) { |
| + if (GlobalInits == nullptr) { |
| + GlobalInits.reset(new VariableDeclarationList); |
| + } |
| + GlobalInits->push_back(Global); |
| + } |
| + /// @} |
| + |
| /// \name Miscellaneous accessors. |
| /// @{ |
| TargetLowering *getTarget() const { return Target.get(); } |
| @@ -166,9 +179,6 @@ public: |
| return llvm::dyn_cast<T>(TargetAssembler.get()); |
| } |
| Assembler *releaseAssembler() { return TargetAssembler.release(); } |
| - std::unique_ptr<VariableDeclarationList> getGlobalInits() { |
| - return std::move(GlobalInits); |
| - } |
| bool hasComputedFrame() const; |
| bool getFocusedTiming() const { return FocusedTiming; } |
| void setFocusedTiming() { FocusedTiming = true; } |