| 9 | } |
| 10 | |
| 11 | const ASTValue *ConstAnalyzerReport::getConstValue(std::string ID) const { |
| 12 | return (ConstantMap.find(ID) != ConstantMap.end()) ? &ConstantMap.at(ID) |
| 13 | : nullptr; |
| 14 | } |
| 15 | |
| 16 | bool ConstAnalyzerReport::addConst(std::string Name, ASTValue Value) { |
| 17 | return ConstantMap.emplace(Name, Value).second; |