Revert "Fix linkage of 'static inline' Clang-imported definitions"

This reverts commit r31763, as it was breaking the bots:

Swift SVN r31765
This commit is contained in:
Dave Abrahams
2015-09-08 16:31:35 +00:00
parent 33feabb504
commit 8269d8130b
9 changed files with 12 additions and 62 deletions

View File

@@ -359,14 +359,10 @@ SILFunction *SILModule::getOrCreateFunction(SILLocation loc,
F->setDebugScope(new (*this) SILDebugScope(loc, *F));
F->setGlobalInit(constant.isGlobal());
if (constant.hasDecl()) {
if (constant.isForeign && constant.isClangGenerated())
F->setForeignBody(HasForeignBody);
if (constant.hasDecl())
if (auto SemanticsA =
constant.getDecl()->getAttrs().getAttribute<SemanticsAttr>())
F->setSemanticsAttr(SemanticsA->Value);
}
F->setDeclContext(constant.hasDecl() ? constant.getDecl() : nullptr);