Search code examples
llvmllvm-clang

What to pass for the vmap argument of CloneFunction in llvm?


I am trying to clone the exact copy of another function. I have not been able to find any examples of CloneFunction usage on the internets.


Solution

  • It turns at the you can just create a ValueToValueMapTy variable and pass it without initialization.