[LLVMdev] A pragma to turn the optimizations off

Michael Spencer bigcheesegs at gmail.com
Thu Jul 26 01:57:52 PDT 2012


On Thu, Jul 26, 2012 at 12:48 AM, Moshe Kravchik <mkravchik at hotmail.com> wrote:
>
> Hi,
>
> I'm looking for a pragma to insert in my source that will turn the
> optimization off for that file. Could not find one, it is possible?
>
> Thanks a lot,
> Moshe

No, clang does not have a pragma for this. You should use your build
system to pass -O0 to clang for this file.

Also, why do you need to disable optimization?

- Michael Spencer



More information about the llvm-dev mailing list