mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
4c29cfd3e4
Summary: Currently, there is no way to extract a basic block from a function easily. This patch extends llvm-extract to extract the specified basic block(s). Reviewers: loladiro, rafael, bogner Reviewed By: bogner Subscribers: hintonda, mgorny, qcolombet, llvm-commits Differential Revision: https://reviews.llvm.org/D41638 llvm-svn: 323266
10 lines
177 B
LLVM
10 lines
177 B
LLVM
; RUN: echo 'bar invalidbb' > %t
|
|
; RUN: not opt -S -extract-blocks -extract-blocks-file=%t %s 2>&1 | FileCheck %s
|
|
|
|
; CHECK: Invalid block
|
|
define void @bar() {
|
|
bb:
|
|
ret void
|
|
}
|
|
|