[llvm-commits] [llvm-gcc-4.2] r56052 - in /llvm-gcc-4.2/trunk/gcc: common.opt llvm-backend.cpp

Chris Lattner clattner at apple.com
Sun Sep 21 16:53:57 PDT 2008


On Sep 10, 2008, at 12:13 AM, Bill Wendling wrote:
> URL: http://llvm.org/viewvc/llvm-project?rev=56052&view=rev
> Log:
> Add the -flimited-precision to the front-end. We error out if a  
> value other
> than 6, 12, or 18 is supplied.

Cool

> +++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Wed Sep 10 02:13:05 2008
> @@ -159,6 +159,19 @@
> +
> +    std::string Arg = "--limit-float-precision=";
> +    Arg += utostr(flag_limited_precision);
> +    ArgStrings.push_back(Arg);

Minor simplification, just use:

> +    ArgStrings.push_back("--limit-float- 
> precision="+utostr(flag_limited_precision));

-Chris


>
> +  }
> +
>   if (llvm_optns) {
>     std::string Opts = llvm_optns;
>     for (std::string Opt = getToken(Opts); !Opt.empty(); Opt =  
> getToken(Opts))
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list