Jake Egan 8cde1cfc60
[AIX] Add git revision to .file string (#88164)
If `LLVM_APPEND_VC_REV` is on, add the git revision to the `.file`
string. The revision can be set with `LLVM_FORCE_VC_REVISION`.

Before:
`.file	"git_revision.cpp",,"LLVM version 19.0.0git"`

After:
`.file	"git_revision.cpp",,"LLVM version 19.0.0git (LLVM_REVISION)"`
2024-04-30 20:37:35 -04:00

13 lines
410 B
LLVM

; Check that the git revision is contained in the assembly/object files
; REQUIRES: vc-rev-enabled
; RUN: llc < %s | FileCheck %s -DREVISION=git-revision
; RUN: llc -filetype=obj < %s | FileCheck %s -DREVISION=git-revision
; CHECK: ([[REVISION]])
source_filename = "git_revision.cpp"
target datalayout = "E-m:a-Fi64-i64:64-n32:64-S128-v256:256:256-v512:512:512"
target triple = "powerpc64-ibm-aix7.2.0.0"