A fix of the bug introduced by previous lowering in asm patch.

Differential Revision: https://reviews.llvm.org/D70243
This commit is contained in:
Xiangling Liao 2019-11-20 11:26:08 -05:00
parent 5665fc91fe
commit 750e855641

View File

@ -1905,8 +1905,7 @@ MCSection *TargetLoweringObjectFileXCOFF::getSectionForConstant(
const DataLayout &DL, SectionKind Kind, const Constant *C,
unsigned &Align) const {
//TODO: Enable emiting constant pool to unique sections when we support it.
if (Kind.isReadOnly() && ReadOnlySection != nullptr)
return ReadOnlySection;
return ReadOnlySection;
}
void TargetLoweringObjectFileXCOFF::Initialize(MCContext &Ctx,