PR11143: Save the old diagnostic handler and call it when munging diagnostics for...
[oota-llvm.git] / include / llvm / Support / SourceMgr.h
index 4c0d9927fa8d51feaa5069f393862aa47bf91b20..58b8fab524021a3250bf835f7bdcd328554496be 100644 (file)
@@ -82,6 +82,9 @@ public:
     DiagContext = Ctx;
   }
 
+  DiagHandlerTy getDiagHandler() const { return DiagHandler; }
+  void *getDiagContext() const { return DiagContext; }
+
   const SrcBuffer &getBufferInfo(unsigned i) const {
     assert(i < Buffers.size() && "Invalid Buffer ID!");
     return Buffers[i];