<div dir="ltr"><div>Sir,<br></div>I have attached the full procedure I have followed.may be this would help you to understand my problem<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 16, 2014 at 12:17 AM, John Criswell <span dir="ltr"><<a 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/15/14, 12:04 PM, Prashanth Sharma
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <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></div>
    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<div class=""><br>
    <br>
    <blockquote 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 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>
                <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><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 href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a>
<a 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>
  </div></div>

</blockquote></div><br><br clear="all"><br>-- <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>