davide added a comment. It's reasonable. I originally used functions because I was worried the switch would become unmanageable. But this is not the case for now. We can re-evaluate in case things should change. Go ahead. http://reviews.llvm.org/D13480