I've lost a friend before, I know it sucks. But my friend was fully aware she was going to die, she lived her life knowing that and made the most of every day, she died feeling content with everything, surrounded by friends and family, a smile on her face.
I think your friend needs to know. If he doesn't, he'll just be scared and full of regrets when the inevitable comes.