Skip to content

Commit c2bd364

Browse files
committed
add comment
1 parent 153d1d9 commit c2bd364

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/PowerPC/PPCISelLowering.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3434,6 +3434,8 @@ SDValue PPCTargetLowering::LowerGlobalTLSAddressAIX(SDValue Op,
34343434
if (Subtarget.hasAIXShLibTLSModelOpt())
34353435
updateForAIXShLibTLSModelOpt(Model, DAG, getTargetMachine());
34363436

3437+
// Whenever accessing the TLS variable, it is done through the TC entries.
3438+
// Therefore, we set the DAG to use the TOC base.
34373439
setUsesTOCBasePtr(DAG);
34383440

34393441
bool IsTLSLocalExecModel = Model == TLSModel::LocalExec;

0 commit comments

Comments
 (0)