[DebugInfo] Make AsmPrinter struct HandlerInfo and Handlers protected
authorYonghong Song <yhs@fb.com>
Wed, 19 Dec 2018 04:07:47 +0000 (04:07 +0000)
committerYonghong Song <yhs@fb.com>
Wed, 19 Dec 2018 04:07:47 +0000 (04:07 +0000)
In AsmPrinter, make struct HandlerInfo and SmallVector
Handlers protected, so target extended AsmPrinter will
be able to add their own handlers.

Signed-off-by: Yonghong Song <yhs@fb.com>
Differential Revision: https://reviews.llvm.org/D55756

llvm-svn: 349602

llvm/include/llvm/CodeGen/AsmPrinter.h

index 301688836f7db011c58b07e2a2d6f8ac60b5778a..413901d218f961e1b70577f25925b3d77f52a1e2 100644 (file)
@@ -138,6 +138,9 @@ private:
 
   static char ID;
 
+protected:
+  /// Protected struct HandlerInfo and Handlers permit target extended
+  /// AsmPrinter adds their own handlers.
   struct HandlerInfo {
     AsmPrinterHandler *Handler;
     const char *TimerName;