From f18a32eb128513239b516cd055baf9415d05f24f Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 1 May 2013 22:32:08 +0000 Subject: 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 --- lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'lib/CodeGen') diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 4a71ad3337..84162ace41 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(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(InitList->getOperand(I)->stripPointerCasts())); -} - //===--------------------------------------------------------------------===// // Emission and print routines // -- cgit v1.2.3-18-g5258