<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
According to the LLVM website, the pass-print-dbginfo should print :<br>
<br>
<div>
<p>Pass that prints instructions, and associated debug info:</p>
<ul>
<li>source/line/col information</li>
<li>original variable name</li>
<li>original type name</li>
</ul>
<p>But the following is the output I get. It has no source file
names. It does not print any instructions. It only prints
function and variable names:<br>
</p>
</div>
<br>
function main<br>
<br>
:<br>
; %2 is variable argc of type int declared at :10<br>
; %3 is variable argv of type declared at :10<br>
; %N is variable N of type unsigned int declared at :13<br>
; %i is variable i of type unsigned int declared at :17<br>
; %2 is variable argc of type int declared at :10<br>
; %3 is variable argv of type declared at :10<br>
; %3 is variable argv of type declared at :10<br>
; %N is variable N of type unsigned int declared at :13<br>
; %N is variable N of type unsigned int declared at :13<br>
; %N is variable N of type unsigned int declared at :13<br>
; %N is variable N of type unsigned int declared at :13<br>
; %i is variable i of type unsigned int declared at :17<br>
:<br>
; %i is variable i of type unsigned int declared at :17<br>
; %N is variable N of type unsigned int declared at :13<br>
:<br>
; %N is variable N of type unsigned int declared at :13<br>
; %i is variable i of type unsigned int declared at :17<br>
; %N is variable N of type unsigned int declared at :13<br>
; %i is variable i of type unsigned int declared at :17<br>
; %N is variable N of type unsigned int declared at :13<br>
; %i is variable i of type unsigned int declared at :17<br>
:<br>
; %i is variable i of type unsigned int declared at :17<br>
; %i is variable i of type unsigned int declared at :17<br>
:<br>
; %N is variable N of type unsigned int declared at :13<br>
; %N is variable N of type unsigned int declared at :13<br>
; %N is variable N of type unsigned int declared at :13<br>
function _Z4initj<br>
<br>
:<br>
; %1 is variable N of type unsigned int declared at :34<br>
; %i is variable i of type int declared at :36<br>
; %j is variable j of type int declared at :39<br>
; %1 is variable N of type unsigned int declared at :34<br>
; %i is variable i of type int declared at :36<br>
:<br>
; %i is variable i of type int declared at :36<br>
; %1 is variable N of type unsigned int declared at :34<br>
:<br>
; %j is variable j of type int declared at :39<br>
:<br>
; %j is variable j of type int declared at :39<br>
; %1 is variable N of type unsigned int declared at :34<br>
:<br>
; %i is variable i of type int declared at :36<br>
; %j is variable j of type int declared at :39<br>
; %j is variable j of type int declared at :39<br>
; %i is variable i of type int declared at :36<br>
; %i is variable i of type int declared at :36<br>
; %j is variable j of type int declared at :39<br>
; %j is variable j of type int declared at :39<br>
; %i is variable i of type int declared at :36<br>
:<br>
; %j is variable j of type int declared at :39<br>
; %j is variable j of type int declared at :39<br>
:<br>
:<br>
; %i is variable i of type int declared at :36<br>
; %i is variable i of type int declared at :36<br>
:<br>
function _Z5printj<br>
<br>
:<br>
; %1 is variable N of type unsigned int declared at :48<br>
; %i is variable i of type int declared at :50<br>
; %j is variable j of type int declared at :53<br>
; %1 is variable N of type unsigned int declared at :48<br>
; %i is variable i of type int declared at :50<br>
:<br>
; %i is variable i of type int declared at :50<br>
; %1 is variable N of type unsigned int declared at :48<br>
:<br>
; %j is variable j of type int declared at :53<br>
:<br>
; %j is variable j of type int declared at :53<br>
; %1 is variable N of type unsigned int declared at :48<br>
:<br>
; %j is variable j of type int declared at :53<br>
; %i is variable i of type int declared at :50<br>
:<br>
; %j is variable j of type int declared at :53<br>
; %j is variable j of type int declared at :53<br>
:<br>
:<br>
; %i is variable i of type int declared at :50<br>
; %i is variable i of type int declared at :50<br>
:<br>
function _Z7matmultj<br>
<br>
:<br>
:<br>
:<br>
:<br>
:<br>
:<br>
:<br>
:<br>
:<br>
:<br>
:<br>
:<br>
:<br>
<br>
<br>
I compiled all my source files with -g option. Please let me know if
this is the expected output, or is it possible to get more info.<br>
<br>
Thanks.<br>
-Apala<br>
<br>
</body>
</html>