fix indentation
authorChris Lattner <sabre@nondot.org>
Fri, 10 Jul 2009 21:01:59 +0000 (21:01 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 10 Jul 2009 21:01:59 +0000 (21:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75277 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86Subtarget.cpp

index 2812fdbc72e734a6ac7816346924c71d8983159e..597f5653a30829cadcfc0a789b0abdac04d5177c 100644 (file)
@@ -50,20 +50,20 @@ ClassifyGlobalReference(const GlobalValue *GV, const TargetMachine &TM) const {
     if (TM.getCodeModel() == CodeModel::Large)
       return X86II::MO_NO_FLAG;
       
-      if (isTargetDarwin()) {
-        // If symbol visibility is hidden, the extra load is not needed if
-        // target is x86-64 or the symbol is definitely defined in the current
-        // translation unit.
-        if (GV->hasDefaultVisibility() &&
-            (GV->isDeclaration() || GV->isWeakForLinker()))
-          return X86II::MO_GOTPCREL;
-      } else {
-        assert(isTargetELF() && "Unknown rip-relative target");
-
-        // Extra load is needed for all externally visible.
-        if (!GV->hasLocalLinkage() && GV->hasDefaultVisibility())
-          return X86II::MO_GOTPCREL;
-      }
+    if (isTargetDarwin()) {
+      // If symbol visibility is hidden, the extra load is not needed if
+      // target is x86-64 or the symbol is definitely defined in the current
+      // translation unit.
+      if (GV->hasDefaultVisibility() &&
+          (GV->isDeclaration() || GV->isWeakForLinker()))
+        return X86II::MO_GOTPCREL;
+    } else {
+      assert(isTargetELF() && "Unknown rip-relative target");
+
+      // Extra load is needed for all externally visible.
+      if (!GV->hasLocalLinkage() && GV->hasDefaultVisibility())
+        return X86II::MO_GOTPCREL;
+    }
 
     return X86II::MO_NO_FLAG;
   }