r197832 - Move the TargetMachine instance into EmitAssemblyHelper

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Dec 20 13:05:54 PST 2013


> -  TargetMachine *TM = CreateTargetMachine(UsesCodeGen);
> +  if (!TM)
> +    TM.reset(CreateTargetMachine(UsesCodeGen));
> +

Just a nit I noticed now: this could be "assert(!TM);" instead of if(!TM), no?

Cheers,
Rafael



More information about the cfe-commits mailing list