llvm-project/clang/test/CodeGen/unique-source-file-names.c
Peter Collingbourne d1b0b4bb44
Add -funique-source-file-identifier option.
This option complements -funique-source-file-names and allows the user
to use a different unique identifier than the source file path.

Reviewers: teresajohnson

Reviewed By: teresajohnson

Pull Request: https://github.com/llvm/llvm-project/pull/142901
2025-06-05 10:52:01 -07:00

4 lines
214 B
C

// RUN: %clang_cc1 -funique-source-file-identifier=foo -triple x86_64-linux-gnu -emit-llvm %s -o - | FileCheck %s
// CHECK: !{i32 5, !"Unique Source File Identifier", ![[MD:[0-9]*]]}
// CHECK: ![[MD]] = !{!"foo"}