From 7dce9919e1961feb33261126e82a7bf23897fa9a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 10 Jul 2009 21:01:59 +0000 Subject: [PATCH] fix indentation llvm-svn: 75277 --- llvm/lib/Target/X86/X86Subtarget.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/llvm/lib/Target/X86/X86Subtarget.cpp b/llvm/lib/Target/X86/X86Subtarget.cpp index 2812fdbc72e7..597f5653a308 100644 --- a/llvm/lib/Target/X86/X86Subtarget.cpp +++ b/llvm/lib/Target/X86/X86Subtarget.cpp @@ -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"); + 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; - } + // Extra load is needed for all externally visible. + if (!GV->hasLocalLinkage() && GV->hasDefaultVisibility()) + return X86II::MO_GOTPCREL; + } return X86II::MO_NO_FLAG; }