Basic/Diagnostics: Eliminate getDiagnosticMappingInfo method, which wasn't worth methodizing.

llvm-svn: 140759
This commit is contained in:
Daniel Dunbar 2011-09-29 01:25:14 +00:00
parent 7dc278dc52
commit 9c78496d51
2 changed files with 1 additions and 11 deletions

View File

@ -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 {

View File

@ -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);