[Frontend] -MP: remove blank lines
GCC 10 removed blank lines for phony targets during a refactoring. The blank lines seems unuseful, so let's follow suit.
This commit is contained in:
parent
ff9576f745
commit
0cc9710a0d
|
@ -326,7 +326,7 @@ void DependencyFileGenerator::outputDependencyFile(DiagnosticsEngine &Diags) {
|
||||||
void DependencyFileGenerator::outputDependencyFile(llvm::raw_ostream &OS) {
|
void DependencyFileGenerator::outputDependencyFile(llvm::raw_ostream &OS) {
|
||||||
// Write out the dependency targets, trying to avoid overly long
|
// Write out the dependency targets, trying to avoid overly long
|
||||||
// lines when possible. We try our best to emit exactly the same
|
// lines when possible. We try our best to emit exactly the same
|
||||||
// dependency file as GCC (4.2), assuming the included files are the
|
// dependency file as GCC>=10, assuming the included files are the
|
||||||
// same.
|
// same.
|
||||||
const unsigned MaxColumns = 75;
|
const unsigned MaxColumns = 75;
|
||||||
unsigned Columns = 0;
|
unsigned Columns = 0;
|
||||||
|
@ -375,7 +375,6 @@ void DependencyFileGenerator::outputDependencyFile(llvm::raw_ostream &OS) {
|
||||||
for (auto I = Files.begin(), E = Files.end(); I != E; ++I) {
|
for (auto I = Files.begin(), E = Files.end(); I != E; ++I) {
|
||||||
if (Index++ == InputFileIndex)
|
if (Index++ == InputFileIndex)
|
||||||
continue;
|
continue;
|
||||||
OS << '\n';
|
|
||||||
PrintFilename(OS, *I, OutputFormat);
|
PrintFilename(OS, *I, OutputFormat);
|
||||||
OS << ":\n";
|
OS << ":\n";
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,17 +6,13 @@
|
||||||
/// Verify that phony targets are only created for the extra dependency files,
|
/// Verify that phony targets are only created for the extra dependency files,
|
||||||
/// and not the input file.
|
/// and not the input file.
|
||||||
// CHECK:dependency-gen-phony.o: 1.extra 2.extra dependency-gen-phony.c \
|
// CHECK:dependency-gen-phony.o: 1.extra 2.extra dependency-gen-phony.c \
|
||||||
// CHECK-NEXT: Inputs{{/|\\\\}}empty.h
|
// CHECK-NEXT: Inputs{{/|\\}}empty.h
|
||||||
// CHECK-EMPTY:
|
|
||||||
// CHECK-NEXT:1.extra:
|
// CHECK-NEXT:1.extra:
|
||||||
// CHECK-EMPTY:
|
|
||||||
// CHECK-NEXT:2.extra:
|
// CHECK-NEXT:2.extra:
|
||||||
// CHECK-EMPTY:
|
|
||||||
// CHECK-NEXT:{{.*}}empty.h:
|
// CHECK-NEXT:{{.*}}empty.h:
|
||||||
// CHECK-NOT:{{.}}
|
// CHECK-NOT:{{.}}
|
||||||
|
|
||||||
// STDIO: -.o: Inputs{{/|\\\\}}empty.h
|
// STDIO: -.o: Inputs{{/|\\}}empty.h
|
||||||
// STDIO-EMPTY:
|
|
||||||
// STDIO-NEXT: {{.*}}empty.h:
|
// STDIO-NEXT: {{.*}}empty.h:
|
||||||
// STDIO-NOT: {{.}}
|
// STDIO-NOT: {{.}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue