mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-01 13:20:25 +00:00
A fix of the bug introduced by previous lowering in asm patch.
Differential Revision: https://reviews.llvm.org/D70243
This commit is contained in:
parent
5665fc91fe
commit
750e855641
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user