Skip to content

Commit

Permalink
[DebugInfo] Make AsmPrinter struct HandlerInfo and Handlers protected
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yonghong-song committed Dec 19, 2018
1 parent 274981e commit 016394b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llvm/include/llvm/CodeGen/AsmPrinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ class AsmPrinter : public MachineFunctionPass {

static char ID;

protected:
/// Protected struct HandlerInfo and Handlers permit target extended
/// AsmPrinter adds their own handlers.
struct HandlerInfo {
AsmPrinterHandler *Handler;
const char *TimerName;
Expand Down

0 comments on commit 016394b

Please sign in to comment.