[PATCH] D42208: Use an enum value instea of an string

Rafael Avila de Espindola via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 17 15:47:39 PST 2018


espindola created this revision.
espindola added reviewers: rnk, rsmith.

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


https://reviews.llvm.org/D42208

Files:
  clang/include/clang/Frontend/CodeGenOptions.h
  clang/lib/CodeGen/BackendUtil.cpp
  clang/lib/Frontend/CodeGenOptions.cpp
  clang/lib/Frontend/CompilerInvocation.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42208.130303.patch
Type: text/x-patch
Size: 4397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180117/0765e3a1/attachment.bin>


More information about the cfe-commits mailing list