<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - "-mllvm -print-before=<pass_name>" not working when invoked with clang"
href="https://llvm.org/bugs/show_bug.cgi?id=30662">30662</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"-mllvm -print-before=<pass_name>" not working when invoked with clang
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Driver
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sgundapa@codeaurora.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>$ touch /tmp/test.c && ./bin/clang -mllvm -print-before=verify -c -emit-llvm
/tmp/1.c
clang (LLVM option parsing): for the -print-before option: Cannot find option
named 'verify'!
Looks like the passes were not registered by the time we parse the command line
when invoked with clang. However, the option works perfectly fine with "llc".
FYI, same is the case with "-mllvm print-after=<pass_name></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>