mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Add the function attributes from an inline asm call. These don't have declarations that set the attribute groups, so we must do it on our own.
llvm-svn: 175577
This commit is contained in:
parent
2be41be7b9
commit
11a5b30dde
@ -553,6 +553,14 @@ void SlotTracker::processFunction() {
|
||||
for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i)
|
||||
if (MDNode *N = dyn_cast_or_null<MDNode>(I->getOperand(i)))
|
||||
CreateMetadataSlot(N);
|
||||
|
||||
// Add all the call attributes to the table. This is important for
|
||||
// inline ASM, which may have attributes but no declaration.
|
||||
if (CI->isInlineAsm()) {
|
||||
AttributeSet Attrs = CI->getAttributes().getFnAttributes();
|
||||
if (Attrs.hasAttributes(AttributeSet::FunctionIndex))
|
||||
CreateAttributeSetSlot(Attrs);
|
||||
}
|
||||
}
|
||||
|
||||
// Process metadata attached with this instruction.
|
||||
|
Loading…
Reference in New Issue
Block a user