readonly section if a reference to the containing function
is valid in the readonly section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85370
91177308-0d34-0410-b5e6-
96231b3b80d8
return GlobalRelocations; // Global reference.
}
+ if (const BlockAddress *BA = dyn_cast<BlockAddress>(this))
+ return BA->getFunction()->getRelocationInfo();
+
PossibleRelocationsTy Result = NoRelocation;
for (unsigned i = 0, e = getNumOperands(); i != e; ++i)
Result = std::max(Result, getOperand(i)->getRelocationInfo());