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

Scott Linder via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 17 09:40:24 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"
----------------
slinder1 wrote:

Right, they aren't required by any stretch, but I wanted to commit the unadulterated output of cc1, just to avoid biasing the test away from the ultimate goal for the change, which is to enable tests for CGDebugInfo related changes using update_cc_test_checks.py

I don't actually have an upstream test which will immediately benefit, and I wasn't sure how best to add a test which relies on clang but ultimately is testing UpdateTestChecks itself. If there is a better approach I'm happy to switch to it, and I am also fine stripping obviously unrelated bits from this test if I'm still not being convincing!

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


More information about the llvm-commits mailing list