aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCAsmBackend.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-04-19 21:14:45 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-04-19 21:14:45 +0000
commit912225e18559a73228099330a4c253fdccf9fa3d (patch)
tree85e400e2c8fb059a77444359f8f8db99a687f892 /lib/Target/PowerPC/PPCAsmBackend.cpp
parente1fe09f6826f158def69cff89f3ce4e67e199bb5 (diff)
ADT/Triple: Move a variety of clients to using isOSDarwin() and isOSWindows()
predicates. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCAsmBackend.cpp')
-rw-r--r--lib/Target/PowerPC/PPCAsmBackend.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Target/PowerPC/PPCAsmBackend.cpp b/lib/Target/PowerPC/PPCAsmBackend.cpp
index c4d4ac9b3e..f562a3f4f9 100644
--- a/lib/Target/PowerPC/PPCAsmBackend.cpp
+++ b/lib/Target/PowerPC/PPCAsmBackend.cpp
@@ -110,10 +110,8 @@ namespace {
TargetAsmBackend *llvm::createPPCAsmBackend(const Target &T,
const std::string &TT) {
- switch (Triple(TT).getOS()) {
- case Triple::Darwin:
+ if (Triple(TT).isOSDarwin())
return new DarwinPPCAsmBackend(T);
- default:
- return 0;
- }
+
+ return 0;
}