mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00: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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175577 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b86f1e5e55
commit
2bb471f2fa
@ -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…
x
Reference in New Issue
Block a user