Changeset View
Changeset View
Standalone View
Standalone View
lib/IR/DiagnosticInfo.cpp
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | if (!FileName.empty()) { | ||||
DP << getFileName(); | DP << getFileName(); | ||||
if (LineNum > 0) | if (LineNum > 0) | ||||
DP << ":" << getLineNum(); | DP << ":" << getLineNum(); | ||||
DP << ": "; | DP << ": "; | ||||
} | } | ||||
DP << getMsg(); | DP << getMsg(); | ||||
} | } | ||||
void DiagnosticInfoPGOProfile::print(DiagnosticPrinter &DP) const { | |||||
if (getFileName()) | |||||
DP << getFileName() << ": "; | |||||
DP << getMsg(); | |||||
} | |||||
bool DiagnosticInfoOptimizationBase::isLocationAvailable() const { | bool DiagnosticInfoOptimizationBase::isLocationAvailable() const { | ||||
return getDebugLoc(); | return getDebugLoc(); | ||||
} | } | ||||
void DiagnosticInfoOptimizationBase::getLocation(StringRef *Filename, | void DiagnosticInfoOptimizationBase::getLocation(StringRef *Filename, | ||||
unsigned *Line, | unsigned *Line, | ||||
unsigned *Column) const { | unsigned *Column) const { | ||||
DILocation *L = getDebugLoc(); | DILocation *L = getDebugLoc(); | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |