make SectionKind be a first-class pod struct instead of just
an enum.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77096 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/ELFTargetAsmInfo.cpp b/lib/Target/ELFTargetAsmInfo.cpp
index ea07836..510816f 100644
--- a/lib/Target/ELFTargetAsmInfo.cpp
+++ b/lib/Target/ELFTargetAsmInfo.cpp
@@ -48,7 +48,7 @@
 
 const Section*
 ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV,
-                                         SectionKind::Kind Kind) const {
+                                         SectionKind Kind) const {
   if (const Function *F = dyn_cast<Function>(GV)) {
     switch (F->getLinkage()) {
     default: llvm_unreachable("Unknown linkage type!");
@@ -62,7 +62,7 @@
   }
   
   const GlobalVariable *GVar = cast<GlobalVariable>(GV);
-  switch (Kind) {
+  switch (Kind.getKind()) {
   default: llvm_unreachable("Unsuported section kind for global");
   case SectionKind::BSS:
     return getBSSSection_();
@@ -147,8 +147,8 @@
 
 
 const char *
-ELFTargetAsmInfo::getSectionPrefixForUniqueGlobal(SectionKind::Kind Kind) const{
-  switch (Kind) {
+ELFTargetAsmInfo::getSectionPrefixForUniqueGlobal(SectionKind Kind) const{
+  switch (Kind.getKind()) {
   default: llvm_unreachable("Unknown section kind");
   case SectionKind::Text:             return ".gnu.linkonce.t.";
   case SectionKind::Data:             return ".gnu.linkonce.d.";