Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Unified Diff: lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp

Issue 7730004: add llvm configure flags to enable/disable target OSes/Envs Base URL: https://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/Target/TargetLibraryInfo.cpp ('k') | lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « lib/Target/TargetLibraryInfo.cpp ('k') | lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698