david-arm wrote:

> And what's wrong with Passes anyway?
> 

See https://github.com/llvm/llvm-project/pull/156802 for a motivation for this 
change. If anybody wants to reference a constant variable from 
OptimizationLevel (OptimizationLevel::O0, for example) they have to add the 
extra Passes dependency, which seems a bit much for one variable. It felt like 
there wasn't really an obvious reason why OptimizationLevel had to live in the 
Passes directory either, and since most passes seem to require the Support 
directory anyway I thought it made sense to move it there? Having said that, 
I'm happy moving it somewhere else that isn't Passes if there are good 
suggestions!

https://github.com/llvm/llvm-project/pull/157057
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to