HomePhabricator

Use PC-relative address for x32 TLS address

Authored by hjl.tools on Jun 3 2014, 1:22 PM.

Description

Use PC-relative address for x32 TLS address

Since x32 supports PC-relative address, it shouldn't use EBX for TLS
address. Instead of checking N.getValueType(), we should check
Subtarget->is32Bit(). This fixes PR 22676.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D16474

Details