Use an enum value instead of a string.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 18 Jan 2018 00:20:03 +0000 (00:20 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 18 Jan 2018 00:20:03 +0000 (00:20 +0000)
commite1d705303225ec0c8be29974dc8dc04aabc86281
treedbff5a6955a894e8eb06a4a1dc6c7dd5b0f97c81
parente769fb73b583441e68c322a1a7811561b0c58c60
Use an enum value instead of a string.

The old StringSwitch use was also broken. It assumed that a
StringSwitch returns Optional<T> instead of T and was missing a
.Default.

llvm-svn: 322792
clang/include/clang/Frontend/CodeGenOptions.h
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/Frontend/CodeGenOptions.cpp
clang/lib/Frontend/CompilerInvocation.cpp