[driver] Add a hasFlag API that accepts a positive alias.
Part of rdar://13622687