<div dir="rtl"><div dir="ltr">The code probably misses the INITIALIZE_PASS macro, see bottom of BarrierNoopPass.cpp</div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr">INITIALIZE_PASS(BarrierNoop, "barrier", "A No-Op Barrier Pass",</div><div dir="ltr"> false, false)</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2015-09-27 21:54 GMT+03:00 Erdem Derebaşoğlu <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">
<div dir="ltr">Dear all,<div><br></div><div>I wrote a machine function pass to run with llc. But I get this error while building: </div><div><br></div><div>"/home/erdem/llvm/lib/CodeGen/CodeGen.cpp:80: error: undefined reference to 'llvm::initializeNoopInserterPass(llvm::PassRegistry&)'"</div><div><br></div><div>NoopInserter is the name of my pass. I already added this line to InitializePasses.h: "void initializeNoopInserterPass(PassRegistry&);".</div><div><br></div><div>Can anyone tell me what the problem is?</div><div><br></div><div>Thanks in advance,</div><div>Erdem Derebasoglu</div></div>
</div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>