aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-05-01 22:32:08 +0000
committerBill Wendling <isanbard@gmail.com>2013-05-01 22:32:08 +0000
commitf18a32eb128513239b516cd055baf9415d05f24f (patch)
treee2a7799662bc5965d254efbdaf5b5765ebc8a13d /lib
parent6ea706e40e841c148bc47bcac4dcca5e0f0245eb (diff)
downloadexternal_llvm-f18a32eb128513239b516cd055baf9415d05f24f.zip
external_llvm-f18a32eb128513239b516cd055baf9415d05f24f.tar.gz
external_llvm-f18a32eb128513239b516cd055baf9415d05f24f.tar.bz2
Revert r180737. The companion patch was reverted, and this is not relevant right now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 4a71ad3..84162ace 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1254,11 +1254,6 @@ bool AsmPrinter::EmitSpecialLLVMGlobal(const GlobalVariable *GV) {
return true;
}
- if (GV->getName() == "llvm.tls_init_funcs") {
- EmitTLSInitFuncs(cast<ConstantArray>(GV->getInitializer()));
- return true;
- }
-
return false;
}
@@ -1325,16 +1320,6 @@ void AsmPrinter::EmitXXStructorList(const Constant *List, bool isCtor) {
}
}
-/// EmitTLSInitFuncs - Emit the TLS initialization functions.
-void AsmPrinter::EmitTLSInitFuncs(const ConstantArray *InitList) {
- const DataLayout *TD = TM.getDataLayout();
- OutStreamer.SwitchSection(getObjFileLowering().getTLSThreadInitSection());
- EmitAlignment(Log2_32(TD->getPointerPrefAlignment()));
- for (unsigned I = 0, E = InitList->getNumOperands(); I != E; ++I)
- EmitGlobalConstant(
- dyn_cast<Constant>(InitList->getOperand(I)->stripPointerCasts()));
-}
-
//===--------------------------------------------------------------------===//
// Emission and print routines
//