Adding functions' inline attribute when we generate DebugInfo
This commit is contained in:
@@ -793,7 +793,6 @@ Module::AddFunctionDeclaration(const std::string &name,
|
|||||||
// Set function attributes: we never throw exceptions
|
// Set function attributes: we never throw exceptions
|
||||||
function->setDoesNotThrow();
|
function->setDoesNotThrow();
|
||||||
if (storageClass != SC_EXTERN_C &&
|
if (storageClass != SC_EXTERN_C &&
|
||||||
!g->generateDebuggingSymbols &&
|
|
||||||
isInline)
|
isInline)
|
||||||
#ifdef LLVM_3_2
|
#ifdef LLVM_3_2
|
||||||
function->addFnAttr(llvm::Attributes::AlwaysInline);
|
function->addFnAttr(llvm::Attributes::AlwaysInline);
|
||||||
|
|||||||
Reference in New Issue
Block a user