`'-O0' not in options.llvm_opts` appears twice, and I think there's a chance we may want to change it in the future. How about using a helper function that returns an integer optimization level, maybe called `get_llvm_opt_level()`?