summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2014-11-22 19:12:10 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2014-11-22 19:12:10 +0000
commita279410ede86a5b7d7c6b383fea647d00e447649 (patch)
treebae6ecf006355da527baa62ef8889cd0ddcfddd3 /llvm/lib/MC/MCObjectFileInfo.cpp
parentc3c002d0b6a5cb6258c9e690a2a811953cedf522 (diff)
downloadbcm5719-llvm-a279410ede86a5b7d7c6b383fea647d00e447649.tar.gz
bcm5719-llvm-a279410ede86a5b7d7c6b383fea647d00e447649.zip
Tidied up target triple OS detection. NFC
Use Triple::isOS*() helper functions where possible. llvm-svn: 222622
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index 1b88462c8a1..7886ab62ca5 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -401,7 +401,7 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) {
// platform.
EHSectionType = ELF::SHT_PROGBITS;
EHSectionFlags = ELF::SHF_ALLOC;
- if (T.getOS() == Triple::Solaris) {
+ if (T.isOSSolaris()) {
if (T.getArch() == Triple::x86_64)
EHSectionType = ELF::SHT_X86_64_UNWIND;
else
OpenPOWER on IntegriCloud