[llvm-commits] [llvm] r75018 - in /llvm/trunk: include/llvm/Support/ lib/Target/ARM/ lib/Target/X86/ lib/Target/X86/AsmPrinter/ lib/VMCore/

Bill Wendling isanbard at gmail.com
Wed Jul 8 11:36:37 PDT 2009


On Wed, Jul 8, 2009 at 11:01 AM, Torok Edwin<edwintorok at gmail.com> wrote:
> Author: edwin
> Date: Wed Jul  8 13:01:40 2009
> New Revision: 75018
>
> URL: http://llvm.org/viewvc/llvm-project?rev=75018&view=rev
> Log:
> Start converting to new error handling API.
> cerr+abort -> llvm_report_error
> assert(0)+abort -> LLVM_UNREACHABLE (assert(0)+llvm_unreachable-> abort() included)
>
> Modified:
>    llvm/trunk/include/llvm/Support/ErrorHandling.h
>    llvm/trunk/lib/Target/ARM/ARMBaseRegisterInfo.cpp
>    llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp
>    llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
>    llvm/trunk/lib/Target/ARM/ARMJITInfo.cpp
>    llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
>    llvm/trunk/lib/Target/ARM/ARMRegisterInfo.cpp
>    llvm/trunk/lib/Target/ARM/Thumb1RegisterInfo.cpp
>    llvm/trunk/lib/Target/ARM/Thumb2RegisterInfo.cpp
>    llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
>    llvm/trunk/lib/Target/X86/X86CodeEmitter.cpp
>    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
>    llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
>    llvm/trunk/lib/Target/X86/X86JITInfo.cpp
>    llvm/trunk/lib/VMCore/AsmWriter.cpp
>    llvm/trunk/lib/VMCore/Globals.cpp
>    llvm/trunk/lib/VMCore/Instructions.cpp
>    llvm/trunk/lib/VMCore/PassManager.cpp
>    llvm/trunk/lib/VMCore/Type.cpp
>    llvm/trunk/lib/VMCore/Value.cpp
>    llvm/trunk/lib/VMCore/Verifier.cpp
>
> Modified: llvm/trunk/include/llvm/Support/ErrorHandling.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ErrorHandling.h?rev=75018&r1=75017&r2=75018&view=diff
>
> ==============================================================================
> --- llvm/trunk/include/llvm/Support/ErrorHandling.h (original)
> +++ llvm/trunk/include/llvm/Support/ErrorHandling.h Wed Jul  8 13:01:40 2009
> @@ -49,5 +49,7 @@
>   void llvm_unreachable(void) NORETURN;
>  }
>
> +#define LLVM_UNREACHABLE(msg) do { assert(0 && msg); llvm_unreachable(); } while(0);
> +
This probably shouldn't have the trailing semicolon.

-bw




More information about the llvm-commits mailing list