[llvm] r211272 - Emit DWARF3 call frame information when DWARF3+ debug info is requested

Alp Toker alp at nuanti.com
Thu Jun 19 11:04:47 PDT 2014


On 19/06/2014 18:39, Oliver Stannard wrote:
> --- llvm/trunk/test/MC/ELF/cfi-version.ll (added)
> +++ llvm/trunk/test/MC/ELF/cfi-version.ll Thu Jun 19 10:39:33 2014
> @@ -0,0 +1,47 @@
> +; RUN: llc %s -o - -dwarf-version 2 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF2
> +; RUN: llc %s -o - -dwarf-version 3 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF34
> +; RUN: llc %s -o - -dwarf-version 4 -filetype=obj | llvm-dwarfdump - | FileCheck %s --check-prefix=DWARF34
> +
> +target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-n32-S64"
> +target triple = "armv8-arm-none-eabi"
> +
> +; Function Attrs: nounwind
> +define i32 @foo() #0 {
> +entry:
> +  %call = call i32 bitcast (i32 (...)* @bar to i32 ()*)(), !dbg !12
> +  %add = add nsw i32 %call, 1, !dbg !12
> +  ret i32 %add, !dbg !12
> +}

This test is failing without the ARM backend:

llc: : error: unable to get target for 'armv8-arm-none-eabi', see 
--version and --triple.
-: The file was not recognized as a valid object file

Should it perhaps be moved to test/MC/ELF/ARM?

Alp.

-- 
http://www.nuanti.com
the browser experts




More information about the llvm-commits mailing list