1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

As PR1085 was fixed, back out workaround

llvm-svn: 32969
This commit is contained in:
Anton Korobeynikov 2007-01-07 00:41:20 +00:00
parent d4c44b723c
commit 874aaaa34a

View File

@ -80,12 +80,7 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
X86SharedAsmPrinter::decorateName(CurrentFnName, F); X86SharedAsmPrinter::decorateName(CurrentFnName, F);
// Change GNU linkonce to LLVM linkonce name SwitchToTextSection(getSectionForFunction(*F).c_str(), F);
if (F->hasSection() &&
(F->getSection().find(".gnu.linkonce.t") != std::string::npos))
SwitchToTextSection(getSectionForFunction(*F).c_str(), NULL);
else
SwitchToTextSection(getSectionForFunction(*F).c_str(), F);
switch (F->getLinkage()) { switch (F->getLinkage()) {
default: assert(0 && "Unknown linkage type!"); default: assert(0 && "Unknown linkage type!");