mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Prefix opt-remark ID with sil "namespace"
This is so that we can unambiguously distinguish from LLVM opt remarks.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user