search for: replaceallusewith

Displaying 1 result from an estimated 1 matches for "replaceallusewith".

Did you mean: replacealluseswith
2012 Aug 21
1
[LLVMdev] Dwarf debug info misses while clang codegen
...r metadata (i.e. enums types, retained types, subprograms, global variables). But DIBuilder::CreateCompileUnit(...) doesn't need any MDNode* arg. It will find those four metadata in the function. I don't know why it can't point to right reference. So I use MDNode::getOperand(..)->replaceAllUseWith(...) to replace those four metadata with right MDNode. But when I compile my new bitcode to elf file. ( clang++ -g hello.bc -o exec) I can't find my debug info when I use readelf. ( readelf -w exec > log ) There just have one TAG . Number TAG 1 DW_TAG_compile_unit [no childr...