File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -2590,20 +2590,15 @@ static llvm::GlobalVariable *createGOTEquivalent(IRGenModule &IGM,
2590
2590
global,
2591
2591
llvm::Twine (" got." ) + globalName);
2592
2592
2593
- // rdar://problem/50968433: Unnamed_addr constants appear to get emitted
2594
- // with incorrect alignment by the LLVM JIT in some cases. Don't use
2595
- // unnamed_addr as a workaround.
2596
2593
// rdar://problem/53836960: i386 ld64 also mis-links relative references
2597
2594
// to GOT entries.
2598
- if (!IGM.getOptions ().UseJIT
2599
- && (!IGM.Triple .isOSDarwin ()
2600
- || IGM.Triple .getArch () != llvm::Triple::x86)) {
2595
+ if (!IGM.Triple .isOSDarwin () || IGM.Triple .getArch () != llvm::Triple::x86) {
2601
2596
gotEquivalent->setUnnamedAddr (llvm::GlobalValue::UnnamedAddr::Global);
2602
2597
} else {
2603
2598
ApplyIRLinkage (IRLinkage::InternalLinkOnceODR)
2604
2599
.to (gotEquivalent);
2605
2600
}
2606
-
2601
+
2607
2602
return gotEquivalent;
2608
2603
}
2609
2604
You can’t perform that action at this time.
0 commit comments