[AArch64] Emit .ident compiler version attribute.

Patch by Ana Pazos<apazos@codeaurora.org>!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210535 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chad Rosier 2014-06-10 14:32:08 +00:00
parent 22471f5731
commit 0db9526c1a
2 changed files with 14 additions and 0 deletions

View File

@ -96,4 +96,6 @@ AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(StringRef TT) {
ExceptionsType = ExceptionHandling::DwarfCFI;
UseIntegratedAssembler = true;
HasIdentDirective = true;
}

View File

@ -0,0 +1,12 @@
; RUN: llc -o - %s -mtriple=aarch64-linux-gnu | FileCheck %s
; ModuleID = 'compiler-ident.c'
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
target triple = "aarch64--linux-gnu"
; CHECK: .ident "some LLVM version"
!llvm.ident = !{!0}
!0 = metadata !{metadata !"some LLVM version"}