[LLVMdev] Recovering variable names from bitcode
baldrick at free.fr
Wed Feb 29 12:27:41 PST 2012
Hi Ashay, which compiler are you using to produce the bitcode?
> I have been facing a few problems getting names of variables from the bitcode.
> The bitcode does contain debug metadata. The first problem is regarding `memtmp'
> variables (apparently, the original variable name is no longer present in the
> bitcode). The other two problems concern OpenMP. In one case, the instruction is
> not named and hence establishing a connection to the debug metadata does not
> seem possible. In the other case, I am noticing some extra fields present in the
> `omp_data_s' structure (these fields are not present in the source code) and
> hence the `alloca' does not match the metadata definition.
> Here are the details:
> Does lldb have similar goals? If yes, which files should I be looking at?
> Any pointers are appreciated!
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev