As PR1085 was fixed, back out workaround
authorAnton Korobeynikov <asl@math.spbu.ru>
Sun, 7 Jan 2007 00:41:20 +0000 (00:41 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sun, 7 Jan 2007 00:41:20 +0000 (00:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32969 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ATTAsmPrinter.cpp

index d71bc784df5199fa860dc2f75b9a4438f7cacae6..ccc2965064de8d2ecbf318720153319e161ab203 100755 (executable)
@@ -80,12 +80,7 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
 
   X86SharedAsmPrinter::decorateName(CurrentFnName, F);
 
-  // Change GNU linkonce to LLVM linkonce name
-  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);
+  SwitchToTextSection(getSectionForFunction(*F).c_str(), F);
     
   switch (F->getLinkage()) {
   default: assert(0 && "Unknown linkage type!");