Core tomatoes and place in a roasting pan with garlic cloves. Add olive oil and stir to coat. Roast until garlic is golden brown, rotating in the pan occasionally to cook evenly. Remove from the oven and let cool. Remove tomatoes and garlic from the pan and chop; set aside.