Let us say there is an Instruction I in an IR.
Is there any function using which I can know that in which line number this Instruction I lies in the original c++ file??
Hi,
Let us say there is an Instruction I in an IR.
Is there any function using which I can know that in which line number
this Instruction I lies in the original c++ file??
for this you need to use debug info. It is a frequently asked question
so I suggest you search the mailing list archives.
Ciao,
Duncan.
RAJWINDER SINGH wrote:
Let us say there is an Instruction I in an IR.
Is there any function using which I can know that in which line number this Instruction I lies in the original c++ file??
Try looking at http://llvm.org/docs/SourceLevelDebugging.html; it provides information on the source level debugging metadata in LLVM IR.
-- John T.