eliminate a pointless switch stmt.

llvm-svn: 77110
diff --git a/llvm/lib/Target/ELFTargetAsmInfo.cpp b/llvm/lib/Target/ELFTargetAsmInfo.cpp
index 510816f..da8ed73 100644
--- a/llvm/lib/Target/ELFTargetAsmInfo.cpp
+++ b/llvm/lib/Target/ELFTargetAsmInfo.cpp
@@ -49,17 +49,8 @@
 const Section*
 ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV,
                                          SectionKind Kind) const {
-  if (const Function *F = dyn_cast<Function>(GV)) {
-    switch (F->getLinkage()) {
-    default: llvm_unreachable("Unknown linkage type!");
-    case Function::PrivateLinkage:
-    case Function::LinkerPrivateLinkage:
-    case Function::InternalLinkage:
-    case Function::DLLExportLinkage:
-    case Function::ExternalLinkage:
-      return TextSection;
-    }
-  }
+  if (isa<Function>(GV))
+    return TextSection;
   
   const GlobalVariable *GVar = cast<GlobalVariable>(GV);
   switch (Kind.getKind()) {