Displaying 1 result from an estimated 1 matches for "functionpassmana".
2017 Sep 18
2
Clang/LLVM 5.0 optnone attribute with -O0
...ee that using -O0 adds the optnone
attribute to all functions, making it impossible to use any existing
LLVM passes in our code generator.
We also tried using -
"clang -Xclang -load -Xclang <module>.so -mllvm <custom options>"
, but this caused a segfault at
llvm::legacy::FunctionPassManagerImpl::doInitialization(llvm::Module&).
What is the right way to get around this issue?
Dipto