llvm-project/clang/test/Driver/unique-source-file-names.c
Peter Collingbourne a5aa0c46c3
Introduce -funique-source-file-names flag.
The purpose of this flag is to allow the compiler to assume that each
object file passed to the linker has been compiled using a unique
source file name. This is useful for reducing link times when doing
ThinLTO in combination with whole-program devirtualization or CFI,
as it allows modules without exported symbols to be built with ThinLTO.

Reviewers: vitalybuka, teresajohnson

Reviewed By: teresajohnson

Pull Request: https://github.com/llvm/llvm-project/pull/135728
2025-04-15 11:12:05 -07:00

6 lines
139 B
C

// RUN: %clang -funique-source-file-names -### %s 2> %t
// RUN: FileCheck < %t %s
// CHECK: "-cc1"
// CHECK: "-funique-source-file-names"