| Index: src/IceCfg.h
|
| diff --git a/src/IceCfg.h b/src/IceCfg.h
|
| index 8e816149b6b20773fbfa89bb64ea07950c3cbb1d..7bdc07686ad7f858bc0a77e2e5813dcc65f45950 100644
|
| --- a/src/IceCfg.h
|
| +++ b/src/IceCfg.h
|
| @@ -157,6 +157,19 @@ public:
|
| }
|
| /// @}
|
|
|
| + /// \name Manage the Globals used by this function.
|
| + /// @{
|
| + 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; }
|
|
|