[llvm] update_test_checks: Relax DIFile filename checks (PR #135692)

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 17 12:11:20 PDT 2025


================
@@ -0,0 +1,34 @@
+; RUN: opt < %s -S | FileCheck %s
+
+; ModuleID = '/home/slinder1/llvm-project/foo.c'
+source_filename = "/home/slinder1/llvm-project/foo.c"
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
----------------
SLTozer wrote:

Personally, if I understand the intent here correctly, I think that since the test is set up specifically for filenames in debug info, it'd be better to trim the usual stuff from the test, e.g. target info, attributes, checksums, git hashes, etc, unless those other qualities are also going to be treated similarly (i.e. have their checks relaxed), in which case they can also be explicitly tested for.

https://github.com/llvm/llvm-project/pull/135692


More information about the llvm-commits mailing list