mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
runtime: remove forward declaration of llvm::function_ref
The runtime has an embedded copy of LLVMSupport which provides `llvm::function_ref` as `__swift::__runtime::llvm::function_ref`. This forward declaration can cause the inlined namespaces to be ignored. Remove the forward declaration for the runtime.
This commit is contained in:
@@ -54,7 +54,9 @@ namespace llvm {
|
||||
class raw_ostream;
|
||||
class APInt;
|
||||
class APFloat;
|
||||
#if !defined(swiftCore_EXPORTS)
|
||||
template <typename Fn> class function_ref;
|
||||
#endif
|
||||
} // end namespace llvm
|
||||
|
||||
|
||||
@@ -92,7 +94,9 @@ namespace swift {
|
||||
// Other common classes.
|
||||
using llvm::APFloat;
|
||||
using llvm::APInt;
|
||||
#if !defined(swiftCore_EXPORTS)
|
||||
using llvm::function_ref;
|
||||
#endif
|
||||
using llvm::NoneType;
|
||||
using llvm::raw_ostream;
|
||||
} // end namespace swift
|
||||
|
||||
Reference in New Issue
Block a user