delcypher added a comment. @aizatsky @kcc Hopefully this is good to go now. I would like to make more changes to how the flags are handled but I think that should be done as a follow up commit because I don't want to change too much in one go. http://reviews.llvm.org/D20558