Map between LLVM IR instruction and source line

How can I save a map between the LLVM IR instruction and the source line if llvm-gcc or dragonegg are used?

+4
source share
1 answer

Inside LLVM, IR debugging information should be used for this purpose. See http://llvm.org/docs/SourceLevelDebugging.html for more details.

llvm-gcc (and DragonEgg) generates everything for you, provided that the same information is available at the GIMPLE level.

+3
source

Source: https://habr.com/ru/post/1342236/


All Articles