.swiftinterface files into the dSYM bundle. These typically come only from the SDK (since textual interfaces require library evolution) and thus are a waste of space to copy into the bundle. The information about this is being parsed out of the control block, which means duplicating 5 constants from the Swift frontend. If a file cannot be parsed, dsymutil errs on the side of copying the file anyway. rdar://138186524 Relanding with additional linker dependency and moving the test into the right target subdirectory.
16 lines
565 B
C
16 lines
565 B
C
//===- tools/dsymutil/SwiftModule.h ---------------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
#ifndef LLVM_TOOLS_DSYMUTIL_SWIFTMODULE_H
|
|
#define LLVM_TOOLS_DSYMUTIL_SWIFTMODULE_H
|
|
|
|
#include "llvm/Support/Error.h"
|
|
|
|
llvm::Expected<bool> IsBuiltFromSwiftInterface(llvm::StringRef data);
|
|
|
|
#endif
|