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

Eric Christopher echristo at gmail.com
Thu Jun 19 11:44:45 PDT 2014


I've relaxed the test a bit to just check the version.

-eric

On Thu, Jun 19, 2014 at 11:34 AM, Eric Christopher <echristo at gmail.com> wrote:
> Actually it may not need a triple at all. Checking.
>
> -eric
>
> On Thu, Jun 19, 2014 at 11:30 AM, Eric Christopher <echristo at gmail.com> wrote:
>> On Thu, Jun 19, 2014 at 11:04 AM, Alp Toker <alp at nuanti.com> wrote:
>>>
>>> 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?
>>>
>>
>> They should, yes.
>>
>> -eric



More information about the llvm-commits mailing list