[LLVMdev] line number of loop header

Bob WM wubousc at gmail.com
Thu Apr 21 19:41:21 PDT 2011


How can I get the line number in the .c or .cpp file for the loop header?

For example, in the following loop:

for(int i=0; i < n; i++) {
   a += 1;
}

I'd like to now the line number of the for(...) line.
-- 
View this message in context: http://old.nabble.com/line-number-of-loop-header-tp31453948p31453948.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.




More information about the llvm-dev mailing list