Adding functions' inline attribute when we generate DebugInfo

This commit is contained in:
Ilia Filippov
2014-03-26 16:27:47 +04:00
parent ecdc695b22
commit 61ac03fc08

View File

@@ -793,7 +793,6 @@ Module::AddFunctionDeclaration(const std::string &name,
// Set function attributes: we never throw exceptions
function->setDoesNotThrow();
if (storageClass != SC_EXTERN_C &&
!g->generateDebuggingSymbols &&
isInline)
#ifdef LLVM_3_2
function->addFnAttr(llvm::Attributes::AlwaysInline);