[llvm] Handle CPI symbols for UEFI (#135652)
UEFI targets besides MSVC environment must support constant pool symbols.
This commit is contained in:
parent
2afef58e40
commit
a9827fbc86
@ -4113,7 +4113,8 @@ const MCExpr *AsmPrinter::lowerBlockAddressConstant(const BlockAddress &BA) {
|
||||
|
||||
/// GetCPISymbol - Return the symbol for the specified constant pool entry.
|
||||
MCSymbol *AsmPrinter::GetCPISymbol(unsigned CPID) const {
|
||||
if (getSubtargetInfo().getTargetTriple().isWindowsMSVCEnvironment()) {
|
||||
if (getSubtargetInfo().getTargetTriple().isWindowsMSVCEnvironment() ||
|
||||
getSubtargetInfo().getTargetTriple().isUEFI()) {
|
||||
const MachineConstantPoolEntry &CPE =
|
||||
MF->getConstantPool()->getConstants()[CPID];
|
||||
if (!CPE.isMachineConstantPoolEntry()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user