diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-10 21:01:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-10 21:01:59 +0000 |
commit | c7822326df54ad766996875851f0796c14268c13 (patch) | |
tree | f3b4171f947c9ca4528b24e43a14a7dda68f73c2 | |
parent | e2c920845a407957b8ae2600feae1f4c85a0d4d0 (diff) |
fix indentation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75277 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86Subtarget.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index 2812fdbc72..597f5653a3 100644 --- a/lib/Target/X86/X86Subtarget.cpp +++ b/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"); - - // 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; } |