[LLVMdev] Pulling line number/file/path information from DbgStopPointInst instructions

Sarah Thompson sarah at findatlantis.com
Wed Apr 29 18:04:01 PDT 2009


Hi folks,

I had some code that used to work fine in earlier versions of LLVM,  
but is now failing. I have some code that expands DbgStopPointInst  
instructions to my own entry points in an opt pass, but it's currently  
failing to get the file name and path back, though it is still  
correctly getting line numbers. If you happen to have a code fragment  
that is known to work, it would be much appreciated.

What it used to work was calling getFileName()->getNameStr() on the  
DbgStopPointInst, which returned a std::string, but in LLVM 2.5 the  
code compiles, but that string is empty. Any clues?

[s]



More information about the llvm-dev mailing list