I think we want a less roundabout way of getting the information needed here from the Driver. Chandler, would you be ok with Edwin adding code to the Driver to that end? http://llvm-reviews.chandlerc.com/D2039