Index: lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp |
=================================================================== |
--- lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp (revision 138335) |
+++ lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp (working copy) |
@@ -443,7 +443,7 @@ |
MCAsmBackend *llvm::createX86_32AsmBackend(const Target &T, StringRef TT) { |
Triple TheTriple(TT); |
- if (TheTriple.isOSDarwin() || TheTriple.getEnvironment() == Triple::MachO) |
+ if (TheTriple.isOSDarwin() || TheTriple.isEnvironmentMachO()) |
return new DarwinX86_32AsmBackend(T); |
if (TheTriple.isOSWindows()) |
@@ -455,7 +455,7 @@ |
MCAsmBackend *llvm::createX86_64AsmBackend(const Target &T, StringRef TT) { |
Triple TheTriple(TT); |
- if (TheTriple.isOSDarwin() || TheTriple.getEnvironment() == Triple::MachO) |
+ if (TheTriple.isOSDarwin() || TheTriple.isEnvironmentMachO()) |
return new DarwinX86_64AsmBackend(T); |
if (TheTriple.isOSWindows()) |