mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00

Summary: This is the first in a series of changes trying to align clang -cc1 flags for Split DWARF with those of llc. The unfortunate side effect of having -split-dwarf-output for single file Split DWARF will disappear again in a subsequent change. The change is the result of a discussion in D59673. Reviewers: dblaikie, echristo Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D63130 llvm-svn: 363494
27 lines
1015 B
ArmAsm
27 lines
1015 B
ArmAsm
// Check that we split debug output properly
|
|
//
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -### %s 2> %t
|
|
// RUN: FileCheck -check-prefix=CHECK-ACTIONS < %t %s
|
|
//
|
|
// CHECK-ACTIONS: "-split-dwarf-output" "split-debug.dwo"
|
|
|
|
// Check we pass -split-dwarf-output to `as` if -gsplit-dwarf=split.
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf=split -c -### %s 2> %t
|
|
// RUN: FileCheck -check-prefix=CHECK-ACTIONS < %t %s
|
|
|
|
// Check we do not pass any -split-dwarf* commands to `as` if -gsplit-dwarf=single.
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf=single -c -### %s 2> %t
|
|
// RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s
|
|
|
|
// RUN: %clang -target x86_64-macosx -gsplit-dwarf -c -### %s 2> %t
|
|
// RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s
|
|
//
|
|
// CHECK-NO-ACTIONS-NOT: -split-dwarf
|
|
|
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -o Bad.x -### %s 2> %t
|
|
// RUN: FileCheck -check-prefix=CHECK-BAD < %t %s
|
|
//
|
|
// CHECK-BAD-NOT: "Bad.dwo"
|
|
|