LLVM IR指令和源代码行之间的映射 [英] Map between LLVM IR instruction and line of source

查看:532
本文介绍了LLVM IR指令和源代码行之间的映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果使用llvm-gcc或dragonegg,如何存储LLVM IR指令和源代码行之间的映射?

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

推荐答案

内部LLVM IR调试信息应用于此目的.有关更多信息,请参见 http://llvm.org/docs/SourceLevelDebugging.html .

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

llvm-gcc(和DragonEgg)将为您生成所有内容,只要在GIMPLE级别上可获得相同的信息即可.

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

这篇关于LLVM IR指令和源代码行之间的映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆