| Index: src/IceCfg.cpp
|
| diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp
|
| index 23c363fa7791938a5a05a0edfc6adaf72167f48b..dd11ebbf8dedc861bb4ce3c5406253517749c5cd 100644
|
| --- a/src/IceCfg.cpp
|
| +++ b/src/IceCfg.cpp
|
| @@ -1706,6 +1706,12 @@ size_t Cfg::getLivenessMemoryMB() const {
|
| return Live->getAllocator()->getTotalMemory() / _1MB;
|
| }
|
|
|
| +void Cfg::addVariable(Variable *Var) {
|
| + assert(Var);
|
| + Var->setIndex(getVariables().size());
|
| + Variables.push_back(Var);
|
| +}
|
| +
|
| // Dumps the IR with an optional introductory message.
|
| void Cfg::dump(const char *Message) {
|
| if (!BuildDefs::dump())
|
|
|