forked from OSchip/llvm-project
Basic/Diagnostics: Eliminate getDiagnosticMappingInfo method, which wasn't worth methodizing.
llvm-svn: 140759
This commit is contained in:
parent
7dc278dc52
commit
9c78496d51
|
@ -563,15 +563,6 @@ private:
|
|||
/// \brief Report the delayed diagnostic.
|
||||
void ReportDelayed();
|
||||
|
||||
|
||||
/// getDiagnosticMappingInfo - Return the mapping info currently set for the
|
||||
/// specified builtin diagnostic. This returns the high bit encoding, or zero
|
||||
/// if the field is completely uninitialized.
|
||||
diag::Mapping getDiagnosticMappingInfo(diag::kind Diag,
|
||||
DiagState *State) const {
|
||||
return State->getMapping(Diag);
|
||||
}
|
||||
|
||||
void setDiagnosticMappingInternal(unsigned DiagId, unsigned Map,
|
||||
DiagState *State,
|
||||
bool isUser, bool isPragma) const {
|
||||
|
|
|
@ -507,8 +507,7 @@ DiagnosticIDs::getDiagnosticLevel(unsigned DiagID, unsigned DiagClass,
|
|||
DiagnosticsEngine::DiagState *State = Pos->State;
|
||||
|
||||
// Get the mapping information, if unset, compute it lazily.
|
||||
unsigned MappingInfo = Diag.getDiagnosticMappingInfo((diag::kind)DiagID,
|
||||
State);
|
||||
unsigned MappingInfo = State->getMapping((diag::kind) DiagID);
|
||||
if (MappingInfo == 0) {
|
||||
MappingInfo = GetDefaultDiagMapping(DiagID);
|
||||
Diag.setDiagnosticMappingInternal(DiagID, MappingInfo, State, false, false);
|
||||
|
|
Loading…
Reference in New Issue