llvm.org GIT mirror llvm / 50dddbd
Merge from mainline Fix a bug that prevented llvm-extract -delete from working. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_24@57953 91177308-0d34-0410-b5e6-96231b3b80d8 Tanya Lattner 10 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
5151 bool deleteGV() {
5252 for (std::vector::iterator GI = Named.begin(),
5353 GE = Named.end(); GI != GE; ++GI) {
54 if (Function* NamedFunc = dyn_cast(&*GI)) {
54 if (Function* NamedFunc = dyn_cast(*GI)) {
5555 // If we're in relinking mode, set linkage of all internal callees to
5656 // external. This will allow us extract function, and then - link
5757 // everything together