aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@chromium.org>2012-08-24 14:02:12 -0700
committerDerek Schuff <dschuff@chromium.org>2012-08-24 14:02:12 -0700
commitc4d12e6c99fcc1d28b46f43cd85c5e3abc88edc0 (patch)
tree50b1660125a5b936c21364c403a9f83e12581607 /lib/CodeGen
parent745ca5f2685c11476d9d1ad86bb3f83754130227 (diff)
Remove llvm.nacl.tp.alignment intrinsic
This intrinsic is no longer used by untrusted code's libpthread. Instead the system (the IRT and/or TCB) is responsible for aligning the stack in new threads. R= jvoung@chromium.org,sehr@chromium.org BUG= http://code.google.com/p/nativeclient/issues/detail?id=2924 TEST=run_stack_alignment_test Review URL: https://chromiumcodereview.appspot.com/10871069
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp5
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp1
2 files changed, 0 insertions, 6 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 2783664e53..c814086473 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -5195,11 +5195,6 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
return 0;
// @LOCALMOD-BEGIN
// Native Client Intrinsics for TLS setup / layout.
- case Intrinsic::nacl_tp_alignment: {
- EVT DestVT = TLI.getValueType(I.getType());
- setValue(&I, DAG.getNode(ISD::NACL_TP_ALIGN, dl, DestVT));
- return 0;
- }
case Intrinsic::nacl_tp_tls_offset: {
SDValue tls_size = getValue(I.getArgOperand(0));
setValue(&I, DAG.getNode(ISD::NACL_TP_TLS_OFFSET, dl,
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
index b6f2ff410d..66f87b4ba0 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
@@ -314,7 +314,6 @@ std::string SDNode::getOperationName(const SelectionDAG *G) const {
// @LOCALMOD-BEGIN
// NaCl intrinsics for TLS setup
- case ISD::NACL_TP_ALIGN: return "nacl_tp_alignment";
case ISD::NACL_TP_TLS_OFFSET: return "nacl_tls_offset";
case ISD::NACL_TP_TDB_OFFSET: return "nacl_tdb_offset";
case ISD::NACL_TARGET_ARCH: return "nacl_target_arch";