mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-26 06:22:56 +02:00
0c956ce7da
This commit reports an error when a machine function from a MIR file that contains LLVM IR can't find a function with the same name in the loaded LLVM IR module. Reviewers: Duncan P. N. Exon Smith Differential Revision: http://reviews.llvm.org/D10468 llvm-svn: 239831
20 lines
449 B
YAML
20 lines
449 B
YAML
# RUN: not llc -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
|
|
# This test ensures that an error is reported when the mir file has LLVM IR and
|
|
# one of the machine functions has a name that doesn't match any function in
|
|
# the LLVM IR.
|
|
|
|
--- |
|
|
|
|
define i32 @foo() {
|
|
ret i32 0
|
|
}
|
|
|
|
...
|
|
---
|
|
name: foo
|
|
...
|
|
---
|
|
# CHECK: function 'faa' isn't defined in the provided LLVM IR
|
|
name: faa
|
|
...
|