Turned on devirtualization + fix in ObjCExport

This commit is contained in:
Igor Chevdar
2018-04-09 15:41:07 +03:00
parent 0a911ed5bb
commit 8e6ed44db3
2 changed files with 8 additions and 1 deletions
@@ -64,7 +64,7 @@ enum class KonanPhase(val description: String,
/* ... ... */ BUILD_DFG("Data flow graph building"),
/* ... ... */ SERIALIZE_DFG("Data flow graph serializing", BUILD_DFG),
/* ... ... */ DESERIALIZE_DFG("Data flow graph deserializing"),
/* ... ... */ DEVIRTUALIZATION("Devirtualization", BUILD_DFG, DESERIALIZE_DFG, enabled = false),
/* ... ... */ DEVIRTUALIZATION("Devirtualization", BUILD_DFG, DESERIALIZE_DFG),
/* ... ... */ ESCAPE_ANALYSIS("Escape analysis", BUILD_DFG, DESERIALIZE_DFG, enabled = false),
/* ... ... */ CODEGEN("Code Generation"),
/* ... ... */ BITCODE_LINKER("Bitcode linking"),
+7
View File
@@ -922,4 +922,11 @@ static void checkLoadedOnce() {
}
}
#else
extern "C" ALWAYS_INLINE id Kotlin_Interop_refToObjC(ObjHeader* obj) {
RuntimeAssert(false, "Unavailable operation");
return nullptr;
}
#endif // KONAN_OBJC_INTEROP