mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
llvm-bcanalyzer does *not* like it when there are multiple block info metadata blocks in the same bitstream file. This patch will skip the emission of that and just jump straight to the metadata block when we're not reading a "standalone" incremental dependency file. While I'm here, also add the right block abbreviation info so we can get a decent dump from llvm-bcanalyzer
10 lines
594 B
Swift
10 lines
594 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module -module-name EmbeddedIncremental -o %t/EmbeddedIncremental~partial.swiftmodule -primary-file %s
|
|
// RUN: %target-swift-frontend -enable-experimental-cross-module-incremental-build -emit-module -module-name EmbeddedIncremental -o %t/EmbeddedIncremental.swiftmodule %t/EmbeddedIncremental~partial.swiftmodule
|
|
// RUN: llvm-bcanalyzer -dump %t/EmbeddedIncremental.swiftmodule | %FileCheck %s --dump-input=always
|
|
|
|
public struct AnyWindows {}
|
|
|
|
// CHECK: <INCREMENTAL_INFORMATION_BLOCK
|
|
// CHECK: </INCREMENTAL_INFORMATION_BLOCK>
|