A black hole the mass of the earth is 9mm. The weight of a cubic cm of sun is around 1.41 grams. The black hole isn't really going to notice.
The pass through the sun is around 1.39102e+11 cm * 1.41 grams per cm^3 = 139 million KG. So the earth weighs around 4.2* 10^16 more than what a black hole sized hole in the sun weighs.