swr: replace major llvm version checks with LLVM_VERSION_MAJOR