How to disable function merging


I am using LLVM and even if I compile my code with -O0, the functions are still merged in the end. This is problematic, because I’m trying to run a memory tool to figure out where allocations come from and since the functions are merged, it makes it hard to identify where it comes from. How can I disable function merging while compiling/linking? Thank you!