Map between LLVM IR instruction and line of source

荒凉一梦 提交于 2019-12-10 13:52:38

问题


How can i store the map between LLVM IR instruction and line of source code if llvm-gcc or dragonegg are used?


回答1:


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

llvm-gcc (and DragonEgg) will generate everything for you provided that the same information is available on GIMPLE level.



来源:https://stackoverflow.com/questions/5190139/map-between-llvm-ir-instruction-and-line-of-source

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!