
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
6 lines
139 B
C
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"
|