I am trying to retrieve the ValueDecl associated with an NSString using the
swiftc code base. I can find the Foundation module, but I cannot seem to
retrieve the NSString type out of it.
swift::ModuleDecl * foundation =
context->getLoadedModule(context->getIdentifier("Foundation")); // this i
> One scheme that I want to investigate for ObjC's use is to allocate a flat
> array of side allocations, and store an index into that array in the isa
> field's extra bits. Depending on architecture that allows between 256K and
> 64M objects with side allocations before falling back to a global
>> You don't talk much about it, but I think you're suggesting that the strong
>> and unowned refcounts would still be packed into the same fields. It's worth
>> noting that your clever high-bit-indicates-slow-path trick would *not* work
>> on the unowned refcount, though that matters less since
I am having an issue cross compiling swift-llvm for iOS from OS X.
This is my command:
utils/build-script -R -i --host-target iphoneos-armv7s --no-assertions -c --
--native-llvm-tools-path
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
--user-config-ar
So, I cancel my question since it was incorrect. I pointed out arm-linux target
with "xcrun -sdk macosx" before swiftc, so all targets unless native were
rejected. But I have once more interesting question about compiler behaviour.
All below written actions are done on Mac. I invoke swiftc:
1) wi