[llvm-dev] Registering a MachineFunctionPass

Erdem Derebaşoğlu via llvm-dev llvm-dev at lists.llvm.org
Sun Sep 27 11:54:14 PDT 2015




Dear all,
I wrote a machine function pass to run with llc. But I get this error while building: 
"/home/erdem/llvm/lib/CodeGen/CodeGen.cpp:80: error: undefined reference to 'llvm::initializeNoopInserterPass(llvm::PassRegistry&)'"
NoopInserter is the name of my pass. I already added this line to InitializePasses.h: "void initializeNoopInserterPass(PassRegistry&);".
Can anyone tell me what the problem is?
Thanks in advance,Erdem Derebasoglu
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150927/8990c6b4/attachment.html>


More information about the llvm-dev mailing list