jckarter / clay

The Clay programming language
http://claylabs.com/clay
Other
403 stars 34 forks source link

pass optimization level to TargetMachine correctly #470

Closed crabtw closed 11 years ago

crabtw commented 11 years ago

Now there is no optimization level for TargetMachine::addPassesToEmitFile. This patch moves the level to Target::createTargetMachine.

jckarter commented 11 years ago

Good catch. Patch looks good to me.

ghost commented 11 years ago

Thanks @crabtw.