diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-08-24 19:02:29 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-08-24 19:02:29 +0000 |
commit | 70c6a3976baf2c667b1525c43753987ae12bf672 (patch) | |
tree | ce118a3a786d2bf09d06345afee4ea160ae34d2b /llvm/lib/Target/ARM/ARMSubtarget.cpp | |
parent | 424fc7e6118abbfbc3b1485435948a4d5f307f45 (diff) | |
download | llvm-70c6a3976baf2c667b1525c43753987ae12bf672.zip llvm-70c6a3976baf2c667b1525c43753987ae12bf672.tar.gz llvm-70c6a3976baf2c667b1525c43753987ae12bf672.tar.bz2 |
Use isTargetMachO instead of isTargetDarwin.
llvm-svn: 279655
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSubtarget.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.cpp b/llvm/lib/Target/ARM/ARMSubtarget.cpp index b6e2b3a..469d340 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.cpp +++ b/llvm/lib/Target/ARM/ARMSubtarget.cpp @@ -282,7 +282,7 @@ bool ARMSubtarget::isGVIndirectSymbol(const GlobalValue *GV) const { // 32 bit macho has no relocation for a-b if a is undefined, even if b is in // the section that is being relocated. This means we have to use o load even // for GVs that are known to be local to the dso. - if (isTargetDarwin() && TM.isPositionIndependent() && + if (isTargetMachO() && TM.isPositionIndependent() && (GV->isDeclarationForLinker() || GV->hasCommonLinkage())) return true; |