<div>Dear all,</div>
<div>    I am wondering if there is some API to add extern function declaration to bc file. For example, as given below, I want to add the line "extern void foo();" to my bc file with some llvm methods, how can I do this, please?</div>

<div> </div>
<div> </div>
<div>extern void foo();              // the llvm bc code is: declare void @_Z3foov().          How can I add this line to llvm bc using some llvm methods?</div>
<div> </div>
<div>int main() {</div>
<div>  foo();</div>
<div>}<br clear="all"><br>-- <br>Regards,<br>Heming Cui<br></div>