dump() function were inlined in Debug build ?

Dear list,

dump() function were inlined in Debug build?

cmake -G “Unix Makefiles” …/rpp_clang/llvm -DCMAKE_BUILD_TYPE=Debug -DLLVM_ENABLE_PROJECTS=“clang;lld” -DLLVM_TARGETS_TO_BUILD=“X86;NVPTX;” -DLLVM_USE_LINKER=gold -DLLVM_USE_SPLIT_DWARF=1

(gdb) p V->dump()
Cannot evaluate function – may be inlined

I guess V is an llvm::Value? Looks like you’re only building clang and lld, not llvm itself (using a pre-installed/pre-built version of llvm?) - so these build options aren’t impacting how llvm itself was built, and that’s where llvm::Value’s dump function would be. I guess you’ve probably got a release build of llvm, which wouldn’t have any dump functions in it.