Invert the option to enable debug info verification. No functional
[oota-llvm.git] / lib / IR / DiagnosticInfo.cpp
index 86e8788eb091df8926d485c525e971d9339863c3..d59d4cf0b5077bf17d2991155672187c5279d9fc 100644 (file)
@@ -56,3 +56,11 @@ void DiagnosticInfoDebugMetadataVersion::print(DiagnosticPrinter &DP) const {
   DP << "ignoring debug info with an invalid version (" << getMetadataVersion()
      << ") in " << getModule();
 }
+
+void DiagnosticInfoSampleProfile::print(DiagnosticPrinter &DP) const {
+  if (getFileName() && getLineNum() > 0)
+    DP << getFileName() << ":" << getLineNum() << ": ";
+  else if (getFileName())
+    DP << getFileName() << ": ";
+  DP << getMsg();
+}