[llvm-commits] [llvm] r54518 - /llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp

Evan Cheng evan.cheng at apple.com
Thu Aug 7 23:43:59 PDT 2008


Author: evancheng
Date: Fri Aug  8 01:43:59 2008
New Revision: 54518

URL: http://llvm.org/viewvc/llvm-project?rev=54518&view=rev
Log:
Fix indentation.

Modified:
    llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp

Modified: llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp?rev=54518&r1=54517&r2=54518&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp Fri Aug  8 01:43:59 2008
@@ -839,9 +839,9 @@
   }
 
   switch (GVar->getLinkage()) {
-   case GlobalValue::CommonLinkage:
-   case GlobalValue::LinkOnceLinkage:
-   case GlobalValue::WeakLinkage:
+  case GlobalValue::CommonLinkage:
+  case GlobalValue::LinkOnceLinkage:
+  case GlobalValue::WeakLinkage:
     if (Subtarget->isTargetDarwin()) {
       O << "\t.globl " << name << '\n'
         << TAI->getWeakDefDirective() << name << '\n';
@@ -852,17 +852,17 @@
       O << "\t.weak\t" << name << '\n';
     }
     break;
-   case GlobalValue::DLLExportLinkage:
-   case GlobalValue::AppendingLinkage:
+  case GlobalValue::DLLExportLinkage:
+  case GlobalValue::AppendingLinkage:
     // FIXME: appending linkage variables should go into a section of
     // their name or something.  For now, just emit them as external.
-   case GlobalValue::ExternalLinkage:
+  case GlobalValue::ExternalLinkage:
     // If external or appending, declare as a global symbol
     O << "\t.globl " << name << '\n';
     // FALL THROUGH
-   case GlobalValue::InternalLinkage:
+  case GlobalValue::InternalLinkage:
      break;
-   default:
+  default:
     assert(0 && "Unknown linkage type!");
   }
 





More information about the llvm-commits mailing list