summaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2007-04-21 20:56:26 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2007-04-21 20:56:26 +0000
commit2c5c111b6c144b05718404c85b9dfcc76b1619e7 (patch)
treedc04a6a623b3d509a400671ff97fa2f21edaca6c /lib/Target
parent7022d1fb2dbd65fa680d67e9598414ff958d07c2 (diff)
downloadllvm-2c5c111b6c144b05718404c85b9dfcc76b1619e7.tar.gz
llvm-2c5c111b6c144b05718404c85b9dfcc76b1619e7.tar.bz2
llvm-2c5c111b6c144b05718404c85b9dfcc76b1619e7.tar.xz
X86 TLS: Implement review feedback.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36318 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/X86/X86ISelLowering.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp
index b37e47cb03..ec86924c66 100644
--- a/lib/Target/X86/X86ISelLowering.cpp
+++ b/lib/Target/X86/X86ISelLowering.cpp
@@ -3004,8 +3004,9 @@ LowerToTLSExecModel(GlobalAddressSDNode *GA, SelectionDAG &DAG,
SDOperand
X86TargetLowering::LowerGlobalTLSAddress(SDOperand Op, SelectionDAG &DAG) {
// TODO: implement the "local dynamic" model
- // TODO: implement the "initial exec"model for pic executables
- assert(!Subtarget->is64Bit() && "TLS not implemented for X86_64");
+ // TODO: implement the "initial exec"model for pic executables
+ assert(!Subtarget->is64Bit() && Subtarget->isTargetELF() &&
+ "TLS not implemented for non-ELF and 64-bit targets");
GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(Op);
// If the relocation model is PIC, use the "General Dynamic" TLS Model,
// otherwise use the "Local Exec"TLS Model