This patch adds support for LLVM_USE_SANITIZER when being built in-tree and standalone.
This patch does the following things:
- define the LLVM_USE_SANITIZER option to "" when being built standalone. This also helps show we support it.
- Translate LLVM_USE_SANITIZER when standalone in a very similar way done in llvm/cmake/HandleLLVMOptions.cmake.
- Add config.llvm_use_sanitizer to lit.site.cfg.in
- Add code to translate config.llvm_use_sanitizer's value into the needed compile flags in lit.cfg.
Currently lit.cfg assumes that that the compiler supports '-fno-omit-frame-pointer' while CMakeLists.txt actually checks to see if its supported. We could pass this information to lit but I'm not sure its needed.
"is not None" is unnecessary.