mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-08 09:43:20 +00:00
[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:
parent
22471f5731
commit
0db9526c1a
@ -96,4 +96,6 @@ AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(StringRef TT) {
|
||||
ExceptionsType = ExceptionHandling::DwarfCFI;
|
||||
|
||||
UseIntegratedAssembler = true;
|
||||
|
||||
HasIdentDirective = true;
|
||||
}
|
||||
|
12
test/CodeGen/AArch64/compiler-ident.ll
Normal file
12
test/CodeGen/AArch64/compiler-ident.ll
Normal 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"}
|
||||
|
Loading…
x
Reference in New Issue
Block a user