Move LiteralString::toString from the header

This commit is contained in:
Alex Beregszaszi committed 2016-08-08 19:08:31 +01:00
1 parent 539afbeea3
commit bf76321c9e
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -852,6 +852,11 @@ bool StringLiteralType::operator==(const Type& _other) const
return m_value == dynamic_cast<StringLiteralType const&>(_other).m_value;
}
std::string StringLiteralType::toString(bool) const
{
return "literal_string \"" + m_value + "\"";
}
TypePointer StringLiteralType::mobileType() const
{
return make_shared<ArrayType>(DataLocation::Memory, true);