[llvm-dev] Source Line/Filename + LLVM

Jiwon Joung via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 10 12:03:40 PDT 2019


Hello all,
I have  a rather simple question.  We compiled our code with debug
information and called Loc.getLineNumber() and Loc.getFilename() from the
DILocation library. However, these methods return 0 and NIL, respectively
for some calls. Most of the calls return valid filenames and src line
numbers, but a couple return 0/NIL.

What is happening here? Does anyone have any experience with this kind of
behavior?

Is it a problem with how I compiled my program? Is it an LLVM problem? Am I
error handling incorrectly?

Thanks,


Jiwon


-- 
Jiwon Joung
University of Michigan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190910/9b1b8b33/attachment.html>


More information about the llvm-dev mailing list