https://bugs.llvm.org/show_bug.cgi?id=49725
Bug ID: 49725
Summary: LLVM Passes issue: unknown pass name
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Transformation Utilities
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
I didn't root cause the issue. However, the current 'main' branch Passes seems
broken.
To reproduce, git clone current main branch. Build it, and create any sample C
program. Like:
int foo() {
return 0;
}
int main() {
foo();
return 0;
}
and then run:
```
$ ./bin/clang -c -emit-llvm sample.c
$ ./bin/opt -load ./lib/LLVMHello.so -hello < sample.bc
./bin/opt: unknown pass name 'hello'
```
This will happen for any Pass we create too, and that's how I noticed it.
This works fine, if instead of the main branch, we download and build for
example the latest release candidate llvm-project-llvmorg-12.0.0-rc3.tar.gz
source.
The expected behavior would be:
```
$ ./bin/opt -load ./lib/LLVMHello.so -hello < sample.bc
Hello: foo
Hello: main
```
Thank you.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs