| 256 | } |
| 257 | |
| 258 | vector<GlobalVariable *> Function::getGlobalVars() const { |
| 259 | vector<GlobalVariable *> gvs; |
| 260 | for (auto I = constants.begin(), E = constants.end(); I != E; ++I) { |
| 261 | if (auto *gv = dynamic_cast<GlobalVariable*>(I->get())) |
| 262 | gvs.push_back(gv); |
| 263 | } |
| 264 | return gvs; |
| 265 | } |
| 266 | |
| 267 | vector<string_view> Function::getGlobalVarNames() const { |
| 268 | vector<string_view> gvnames; |
no test coverage detected