mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 23:49:22 +08:00
[Basic] Eliminate DiagnosticBuilder::Suppress and matching ctor, this stuff is
not used anymore (good thing we are still paying for it!). llvm-svn: 152642
This commit is contained in:
@@ -793,15 +793,6 @@ public:
|
||||
NumFixits = D.NumFixits;
|
||||
}
|
||||
|
||||
/// \brief Simple enumeration value used to give a name to the
|
||||
/// suppress-diagnostic constructor.
|
||||
enum SuppressKind { Suppress };
|
||||
|
||||
/// \brief Create an empty DiagnosticBuilder object that represents
|
||||
/// no actual diagnostic.
|
||||
explicit DiagnosticBuilder(SuppressKind)
|
||||
: DiagObj(0), NumArgs(0), NumRanges(0), NumFixits(0) { }
|
||||
|
||||
/// \brief Force the diagnostic builder to emit the diagnostic now.
|
||||
///
|
||||
/// Once this function has been called, the DiagnosticBuilder object
|
||||
|
||||
@@ -776,9 +776,6 @@ public:
|
||||
SemaDiagnosticBuilder(DiagnosticBuilder &DB, Sema &SemaRef, unsigned DiagID)
|
||||
: DiagnosticBuilder(DB), SemaRef(SemaRef), DiagID(DiagID) { }
|
||||
|
||||
explicit SemaDiagnosticBuilder(Sema &SemaRef)
|
||||
: DiagnosticBuilder(DiagnosticBuilder::Suppress), SemaRef(SemaRef) { }
|
||||
|
||||
~SemaDiagnosticBuilder();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user