<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 6/15/14, 12:04 PM, Prashanth Sharma
wrote:<br>
</div>
<blockquote
cite="mid:CAJ+w9q52SwBP6gDSZOgEJ4kgskX-aQ6bCvE-NRO45tqiUJfgQw@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div dir="ltr">Let's take Hello.cpp pass file from
llvm/lib/Transform/Hello. Now I want to run <span
style="font-family:arial,sans-serif;font-size:13px">clang
-emit-llvm -c Hello.cpp(Hello.c).Means I want to apply this
pass on itself.Then there are too many errors.</span></div>
</blockquote>
<br>
You need to be more specific about how you are running your pass on
the bitcode file and what errors you are seeing. No one can figure
out what the problem is with the small amount of information that
you have provided.<br>
<br>
Regards,<br>
<br>
John Criswell<br>
<br>
<blockquote
cite="mid:CAJ+w9q52SwBP6gDSZOgEJ4kgskX-aQ6bCvE-NRO45tqiUJfgQw@mail.gmail.com"
type="cite">
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sun, Jun 15, 2014 at 10:27 PM, John
Criswell <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:criswell@illinois.edu" target="_blank">criswell@illinois.edu</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div class="">
<div>On 6/14/14, 6:02 AM, Prashanth Sharma wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi,
<div>I applied some pass i.e. Hello pass on
Hello.cpp(the pass file).It doesnot work as using
command clang -emit-llvm -c Hello.c(Hell.cpp) does
not create any .bc file .Can any body have some
suggestion ?<br clear="all">
</div>
</div>
</blockquote>
<br>
</div>
Is the problem that you can't create a bitcode file or
that you can't get clang to run your pass?<br>
<br>
Assuming you can't generate a bitcode file, clang
-emit-llvm -c <file.c> should create a file ending
with .o that is an LLVM bitcode file. It will not have a
.bc suffix.<br>
<br>
Regards,<br>
<br>
John Criswell<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div>
<div><br>
</div>
-- <br>
<div dir="ltr">
<div><font face="arial,helvetica,sans-serif">Thanks <br>
</font></div>
<font face="arial,helvetica,sans-serif">Prashant
Sharma<br>
</font></div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
LLVM Developers mailing list
<a moz-do-not-send="true" href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a moz-do-not-send="true" href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a>
<a moz-do-not-send="true" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
</font></span></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<div><font face="arial,helvetica,sans-serif">Thanks <br>
</font></div>
<font face="arial,helvetica,sans-serif">Prashant Sharma<br>
</font></div>
</div>
</blockquote>
<br>
</body>
</html>