mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
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
This commit is contained in:
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user