[cfe-commits] [PATCH] Simplify StringSwitch

Gabor Greif gabor at mac.com
Thu Dec 3 03:53:58 PST 2009


Hi all,

attached patch simplifies StringSwitch and gets rid of the
Copy{Constructible|Assignable} constraint on the type parameter.

It should also be a bit more efficient, in runtime and space.

I know that several PRs are open against LLVM optimizations
that focus on this construct, so I did not commit this directly.

Ok to commit (someday) ?

Cheers,

	Gabor
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: StringSwitch.h.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20091203/c6d36c71/attachment.ksh>


More information about the cfe-commits mailing list