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:
Saleem Abdulrasool
2020-05-13 15:19:59 -07:00
parent f7df8e7bd4
commit 3fa1d8dc7f

View File

@@ -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