summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
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
commit8f2e6feb8e218acaf395536776627d54562ed981 (patch)
tree2dbc1ba38e17962f423ffe9fe018ee5134cb7cee /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent7f13bd7678b3e8d21720f720c8e98b2497ec8c94 (diff)
downloadbcm5719-llvm-8f2e6feb8e218acaf395536776627d54562ed981.tar.gz
bcm5719-llvm-8f2e6feb8e218acaf395536776627d54562ed981.zip
Revert r180737. The companion patch was reverted, and this is not relevant right now.
llvm-svn: 180889
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 4a71ad33373..84162ace418 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/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
//
OpenPOWER on IntegriCloud