OSDN Git Service

[BasicBlock] Added AnnotationWriter functionality to BasicBlock class
authorKirill Naumov <knaumov@azul.com>
Sat, 6 Jun 2020 00:06:09 +0000 (00:06 +0000)
committerKirill Naumov <knaumov@azul.com>
Thu, 18 Jun 2020 19:49:58 +0000 (19:49 +0000)
commit41d53194fb9d5aba3e4861233b1af9cb62cc999a
tree4b65d8ff2d4dbca5f2db27a1aab54b5cdd4dd905
parent46a285ad9e34dc6ccfd2530835687cac4cd67e3e
[BasicBlock] Added AnnotationWriter functionality to BasicBlock class

This functionality is very similar to Function compatibility with
AnnotationWriter. This change allows us to use AnnotationWriter with
BasicBlock through BB.print() method.

Reviewed-By: apilipenko
Differntial Revision: https://reviews.llvm.org/D81321
llvm/include/llvm/IR/BasicBlock.h
llvm/lib/IR/AsmWriter.cpp