summaryrefslogtreecommitdiff
path: root/lib/Target/AArch64/AArch64Subtarget.h
diff options
context:
space:
mode:
authorCameron Esfahani <dirty@apple.com>2013-08-29 20:23:14 +0000
committerCameron Esfahani <dirty@apple.com>2013-08-29 20:23:14 +0000
commit441c557708b5dbe91f1799baf790ad418c23ea70 (patch)
tree07017978679109c2e45a6669ff163cf87ee1c609 /lib/Target/AArch64/AArch64Subtarget.h
parent9071f68fd2b18abaee614e07ae6da6d8bc34426e (diff)
downloadllvm-441c557708b5dbe91f1799baf790ad418c23ea70.tar.gz
llvm-441c557708b5dbe91f1799baf790ad418c23ea70.tar.bz2
llvm-441c557708b5dbe91f1799baf790ad418c23ea70.tar.xz
Clean up some usage of Triple. The base class has methods for determining if the target is iOS and Linux.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189604 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/AArch64/AArch64Subtarget.h')
-rw-r--r--lib/Target/AArch64/AArch64Subtarget.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/AArch64/AArch64Subtarget.h b/lib/Target/AArch64/AArch64Subtarget.h
index 35a7c8d85d..4ffb60506c 100644
--- a/lib/Target/AArch64/AArch64Subtarget.h
+++ b/lib/Target/AArch64/AArch64Subtarget.h
@@ -46,7 +46,7 @@ public:
bool GVIsIndirectSymbol(const GlobalValue *GV, Reloc::Model RelocM) const;
bool isTargetELF() const { return TargetTriple.isOSBinFormatELF(); }
- bool isTargetLinux() const { return TargetTriple.getOS() == Triple::Linux; }
+ bool isTargetLinux() const { return TargetTriple.isOSLinux(); }
bool hasNEON() const { return HasNEON; }