[llvm] Make ScopedPrinter interface virtual
authorJayson Yan <jaysonyan@google.com>
Fri, 10 Dec 2021 17:45:40 +0000 (17:45 +0000)
committerJayson Yan <jaysonyan@google.com>
Fri, 10 Dec 2021 18:57:33 +0000 (18:57 +0000)
commitec6870b39cf75bf84a160322bc72b1a3abd69da8
tree72183c5f51dc02a602002fa7ef2dbcbe73652755
parent7f09aee0f6b4b00508d2cf86b0b1339c8d2ca2d1
[llvm] Make ScopedPrinter interface virtual

Make the interface provided by ScopedPrinter virtual to support a future
JSONScopedPrinter which will supply it's own implementation.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D114223
llvm/include/llvm/Support/ScopedPrinter.h