Map between LLVM IR instruction and line of source
Asked Answered
D

1

6

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

Diadiabase answered 4/3, 2011 at 5:42 Comment(0)
W
3

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.

Wicklund answered 4/3, 2011 at 7:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.