[WebAssembly] Implement a new algorithm for placing BLOCK markers
[oota-llvm.git] / lib / IR / DiagnosticInfo.cpp
index 4753789d9c1315dfbf1104b2cf4a07eea08a0411..6426f76bbaa61960a6d2756e09379134278162b3 100644 (file)
@@ -132,6 +132,12 @@ void DiagnosticInfoSampleProfile::print(DiagnosticPrinter &DP) const {
   DP << getMsg();
 }
 
+void DiagnosticInfoPGOProfile::print(DiagnosticPrinter &DP) const {
+  if (getFileName())
+    DP << getFileName() << ": ";
+  DP << getMsg();
+}
+
 bool DiagnosticInfoOptimizationBase::isLocationAvailable() const {
   return getDebugLoc();
 }