search for: getorcreatesourceid

Displaying 5 results from an estimated 5 matches for "getorcreatesourceid".

2011 Dec 19
2
[LLVMdev] DwarfDebug craziness
>From DwarfDebug.cpp: >/// GetOrCreateSourceID - Look up the source id with the given directory and >/// source file names. If none currently exists, create a new id and insert it >/// in the SourceIds map. This can update DirectoryNames and SourceFileNames >/// maps as well. >unsigned DwarfDebug::GetOrCreateSourceID(StringRef FileN...
2011 Dec 19
0
[LLVMdev] DwarfDebug craziness
Josh Matthews wrote: >> From DwarfDebug.cpp: > >> /// GetOrCreateSourceID - Look up the source id with the given directory and >> /// source file names. If none currently exists, create a new id and insert it >> /// in the SourceIds map. This can update DirectoryNames and SourceFileNames >> /// maps as well. >> unsigned DwarfDebug::GetOrCreateSour...
2009 Apr 30
0
[LLVMdev] Pulling line number/file/path information from DbgStopPointInst instructions
...ly > 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. > Hi Sarah, I'm not sure if this will help you out, but take a look at how DwarfWriter::getOrCreateSourceID is used. Unfortunately, I don't see how to get the file name from a DbgStopPointInstr right offhand. Things in the CodeGen/AsmPrinter/DwarfWriter.cpp file have changed quite a bit in recent months... -bw > What it used to work was calling getFileName()->getNameStr() on the > DbgStopP...
2009 Apr 30
2
[LLVMdev] Pulling line number/file/path information from DbgStopPointInst instructions
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
2009 Apr 30
2
[LLVMdev] Pulling line number/file/path information from DbgStopPointInst instructions
...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. >> > Hi Sarah, > > I'm not sure if this will help you out, but take a look at how > DwarfWriter::getOrCreateSourceID is used. Unfortunately, I don't see > how to get the file name from a DbgStopPointInstr right offhand. > Things in the CodeGen/AsmPrinter/DwarfWriter.cpp file have changed > quite a bit in recent months... > > -bw > >> What it used to work was calling getFileName()->g...