search for: mod_ptr2

Displaying 1 result from an estimated 1 matches for "mod_ptr2".

Did you mean: mod_ptr
2019 May 17
3
Copy Function from one LLVM IR file to another
...Module* Mod_ptr = &M; *3.* Then I read the (.ll) file into which I want to copy the function using: std::unique_ptr<Module> ParsedMod2(parseIRFile("server.ll", Err, Context)); Module &M2 = dynamic_cast<Module&>(*ParsedMod2); Module* Mod_ptr2 = &M2; *4.* I keep two iterators to save the points from where i have to start replacing instructions as: Module::iterator F1; Module::iterator F2; *5.* Assign them values so that F1 points to the first function and F2 to the second function: for(Module::iterator func = Mod_ptr-...