search for: ccxx_frontend

Displaying 8 results from an estimated 8 matches for "ccxx_frontend".

2018 May 15
2
source line number for instruction
Hi, I want to retrieve a function from a source line-number, is this something possible to achieve? I tried the following code snippet with LLVM-7 but it doesn't seem to workhttp://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend <http://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend:> Is there specific documentation I can refer to implement this? Thanks -- *Rtr. PP Ridwan Shariffdeen* Asst. District Rotaract Representative | Rotaract District 3220 Past President | Rotaract Club of University of Moratuwa...
2018 May 15
0
source line number for instruction
...a llvm-dev < llvm-dev at lists.llvm.org> wrote: > Hi, > > I want to retrieve a function from a source line-number, is this something possible to achieve? > I tried the following code snippet with LLVM-7 but it doesn't seem to workhttp://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend <http://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend:> > > Is there specific documentation I can refer to implement this? > > Thanks > > -- > > > *Rtr. PP Ridwan Shariffdeen* > Asst. District Rotaract Representative | Rotaract District 3220 > Past Pre...
2010 Jul 07
2
[LLVMdev] source line number for instruction
Hi, I found the following at http://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend: if (MDNode *N = I->getMetadata("dbg")) { // Here I is an LLVM instruction DILocation Loc(N); // DILocation is in DebugInfo.h unsigned Line = Loc.getLineNumber(); StringRef File = Loc.getFilename(); StringRef Dir = Loc.getDirectory(); } Does...
2010 May 18
0
[LLVMdev] DEBUG INFO at the bytecode level
...0/5/18 Zheng Wang <jason.wangz at gmail.com>: > > I found DebugInfo.cpp may be useful. Could you tell me which function > I should call inorder to know the source file name and the line number > for a particular instruction? > See http://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend At the end of "C/C++ source file information" section, there is a small code snippet this describes how to extract this information. - Devang
2010 May 25
1
[LLVMdev] DEBUG INFO at the bytecode level
...; gmail.com>: > > > > I found DebugInfo.cpp may be useful. Could you tell me which function > > I should call inorder to know the source file name and the line number > > for a particular instruction? > > > > See http://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend > At the end of "C/C++ source file information" section, there is a > small code snippet this describes how to extract this information. > > - > Devang > Hi Devang, I think the link you provided above is for LLVM 2.7. Is there any way to get source line number from...
2010 Jul 07
0
[LLVMdev] source line number for instruction
On Jul 6, 2010, at 10:44 PM, Guoliang Jin wrote: > I found the following at http://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend > : > if (MDNode *N = I->getMetadata("dbg")) { // Here I is an LLVM > instruction > DILocation Loc(N); // DILocation is in > DebugInfo.h > unsigned Line = Loc.getLineNumber(); > StringRef File = Loc.getFilename(); > String...
2010 May 18
4
[LLVMdev] DEBUG INFO at the bytecode level
Thanks Edwin. I found DebugInfo.cpp may be useful. Could you tell me which function I should call inorder to know the source file name and the line number for a particular instruction? Cheers, Zheng 2010/5/18 Török Edwin <edwintorok at gmail.com>: > On 05/18/2010 01:26 PM, Zheng Wang wrote: >> Hello, >> >> Could I get some debug info at the byte code level? I am
2010 Jul 07
1
[LLVMdev] source line number for instruction
On 7/7/2010 3:08 PM, Trevor Harmon wrote: > On Jul 6, 2010, at 10:44 PM, Guoliang Jin wrote: > >> I found the following at >> http://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend: >> if (MDNode *N = I->getMetadata("dbg")) { // Here I is an LLVM >> instruction >> DILocation Loc(N); // DILocation is in >> DebugInfo.h >> unsigned Line = Loc.getLineNumber(); >> StringRef File = Loc.getFilename();...