projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[WebAssembly] Implement a new algorithm for placing BLOCK markers
[oota-llvm.git]
/
lib
/
IR
/
DiagnosticInfo.cpp
diff --git
a/lib/IR/DiagnosticInfo.cpp
b/lib/IR/DiagnosticInfo.cpp
index 4753789d9c1315dfbf1104b2cf4a07eea08a0411..6426f76bbaa61960a6d2756e09379134278162b3 100644
(file)
--- a/
lib/IR/DiagnosticInfo.cpp
+++ b/
lib/IR/DiagnosticInfo.cpp
@@
-132,6
+132,12
@@
void DiagnosticInfoSampleProfile::print(DiagnosticPrinter &DP) const {
DP << getMsg();
}
DP << getMsg();
}
+void DiagnosticInfoPGOProfile::print(DiagnosticPrinter &DP) const {
+ if (getFileName())
+ DP << getFileName() << ": ";
+ DP << getMsg();
+}
+
bool DiagnosticInfoOptimizationBase::isLocationAvailable() const {
return getDebugLoc();
}
bool DiagnosticInfoOptimizationBase::isLocationAvailable() const {
return getDebugLoc();
}