mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Implement support for calling imported C functions from Swift.
There is no protection whatsoever if the Clang-to-Swift type conversion produces something that Swift doesn't lower in an ABI-compatible way. That will be dealt with later. Swift SVN r3249
This commit is contained in:
@@ -73,7 +73,7 @@ static bool IRGenImportedModules(TranslationUnit *TU,
|
||||
bool IsREPL = true) {
|
||||
// IRGen the modules this module depends on.
|
||||
for (auto ModPair : TU->getImportedModules()) {
|
||||
if (isa<BuiltinModule>(ModPair.second))
|
||||
if (isa<BuiltinModule>(ModPair.second) || isa<ClangModule>(ModPair.second))
|
||||
continue;
|
||||
|
||||
TranslationUnit *SubTU = cast<TranslationUnit>(ModPair.second);
|
||||
|
||||
Reference in New Issue
Block a user