<div>Hello,<br></div><div><div class="gmail_quote"><div><div dir="ltr"><div dir="ltr"><div><br></div><div>I recently updated LLVM from version 6.0.0 to 10.0.0.</div><div><br></div><div>I see the following issue when I compile an application only with code coverage compiler options. Thes issue does not appear in any other build type.<br></div><div><br></div><div><i>...:(__llvm_prf_data[__profv__</i><i>ZNK4llvm3cfg6UpdateIPNS_</i><i>10BasicBlockEE4dumpEv]+0x18): </i><b><i>undefined reference to `llvm::cfg::Update<llvm::</i></b><b><i>BasicBlock*>::dump() const'</i></b></div><div><br></div><div>I see this issue only when I compile the app with the following compiler options:</div><div><br></div><div><b><i>-g -O2 -fprofile-instr-generate -fcoverage-mapping</i></b></div><div><br></div><div>I don't use any special flags when I build LLVM. I used g++-7 (or clang++-9) to compile LLVM static libs. The issue does not appear with LLVM 6.0.0.</div><div><br></div><div>I included all LLVM libraries in the same order whatever <b>llvm-config --libs </b>outputs. </div><div><br></div><div>What lib am I missing? Or is this a known issue?</div><div><br></div><div>Thank you,</div>Aaron<div><br></div></div></div><br><br></div><br><br></div></div>