<div dir="ltr"><div style="font-family:tahoma,sans-serif" class="gmail_default">​</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 13, 2015 at 8:54 PM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><span>> To solve, I store function basic blocks before remove it. and after function<br>
> insertion, I want to insert them to function. But when I want to add them<br>
> with insertInto() method, this error appears:<br>
> no member named 'insertInto' in 'llvm::BasicBlock'.<br>
> I'm confused. I sure this method exists in BasicBlock class.<br>
<br>
</span>It seems to have been added after 3.5 branched, are you looking at<br>
documentation for trunk but compiling against an older LLVM?<br></blockquote><div style="font-family:tahoma,sans-serif" class="gmail_default">​You are correct.​</div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<br>
You might have slightly better luck with<br>
"Module->getFunctionList().push_back(OldFunc)" though. I wouldn't<br>
swear to it working, but if it did you wouldn't need to mess around<br>
with saving and restoring the basic blocks.<br></blockquote><div style="font-family:tahoma,sans-serif" class="gmail_default">​Thanks very much. Your answer was very helpful for me.​</div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<br>
Cheers.<br>
<span class="HOEnZb"><font color="#888888"><br>
Tim.<br>
</font></span></blockquote></div><br></div></div>