summaryrefslogtreecommitdiffhomepage
path: root/minicc.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-11-15 13:55:18 +0100
committerRoland Reichwein <mail@reichwein.it>2020-11-15 13:55:18 +0100
commitd07c5bc14edbe071ee7b4f47f174780e95e451aa (patch)
tree889ed88ea6907119b75b7b76f616a604c9857e3d /minicc.cpp
parent9e7f4c9d43b310c280cd6432cd4150411f4b914e (diff)
Simplify Asm construction
Diffstat (limited to 'minicc.cpp')
-rw-r--r--minicc.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/minicc.cpp b/minicc.cpp
index 88cb6ab..2e9c215 100644
--- a/minicc.cpp
+++ b/minicc.cpp
@@ -60,3 +60,8 @@ std::string Token::toString() const
return location.toString() + ": "s + value + " ("s + type + ")"s;
}
+std::string demangle(const std::type_info& type)
+{
+ return boost::core::demangle(type.name());
+}
+