Prefix opt-remark ID with sil "namespace"

This is so that we can unambiguously distinguish from LLVM opt remarks.
This commit is contained in:
Adam Nemet
2017-12-05 20:42:53 -08:00
parent 1191901e55
commit 1520cbe6dd
5 changed files with 7 additions and 7 deletions

View File

@@ -134,7 +134,7 @@ template <typename KindT> struct MappingTraits<Remark<KindT>> {
// them.
StringRef PassName = R.getPassName();
io.mapRequired("Pass", PassName);
StringRef Id = R.getIdentifier();
std::string Id = (Twine("sil.") + R.getIdentifier()).str();
io.mapRequired("Name", Id);
SourceLoc Loc = R.getLocation();