[mlir] Don't emit unused labels
authorMarius Brehler <marius.brehler@iml.fraunhofer.de>
Tue, 25 Jan 2022 16:13:30 +0000 (16:13 +0000)
committerMarius Brehler <marius.brehler@iml.fraunhofer.de>
Thu, 27 Jan 2022 07:56:03 +0000 (07:56 +0000)
commit578122c18a2fd2765b4b07a6cf9d46719c638a60
tree9cb39cfdb0cf43c474d6eb4b4413e146898e7041
parent4ad517e6b0902ced1aeb179cabc9129a2007eca4
[mlir] Don't emit unused labels

Stop the Cpp target from emitting unused labels. The previosly generated
code generated warning if `-Wunused-label` is passed to a compiler.

Co-authored-by: Simon Camphausen <simon.camphausen@iml.fraunhofer.de>
Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D118154
mlir/lib/Target/Cpp/TranslateToCpp.cpp
mlir/test/Target/Cpp/control_flow.mlir