remove useless \n when emitting ir