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

Side by Side 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, 3 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 unified diff | Download patch
« no previous file with comments | « lib/Target/TargetLibraryInfo.cpp ('k') | lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===-- X86AsmBackend.cpp - X86 Assembler Backend -------------------------===// 1 //===-- X86AsmBackend.cpp - X86 Assembler Backend -------------------------===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // The LLVM Compiler Infrastructure
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 9
10 #include "llvm/MC/MCAsmBackend.h" 10 #include "llvm/MC/MCAsmBackend.h"
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 return false; 436 return false;
437 } 437 }
438 } 438 }
439 }; 439 };
440 440
441 } // end anonymous namespace 441 } // end anonymous namespace
442 442
443 MCAsmBackend *llvm::createX86_32AsmBackend(const Target &T, StringRef TT) { 443 MCAsmBackend *llvm::createX86_32AsmBackend(const Target &T, StringRef TT) {
444 Triple TheTriple(TT); 444 Triple TheTriple(TT);
445 445
446 if (TheTriple.isOSDarwin() || TheTriple.getEnvironment() == Triple::MachO) 446 if (TheTriple.isOSDarwin() || TheTriple.isEnvironmentMachO())
447 return new DarwinX86_32AsmBackend(T); 447 return new DarwinX86_32AsmBackend(T);
448 448
449 if (TheTriple.isOSWindows()) 449 if (TheTriple.isOSWindows())
450 return new WindowsX86AsmBackend(T, false); 450 return new WindowsX86AsmBackend(T, false);
451 451
452 return new ELFX86_32AsmBackend(T, TheTriple.getOS()); 452 return new ELFX86_32AsmBackend(T, TheTriple.getOS());
453 } 453 }
454 454
455 MCAsmBackend *llvm::createX86_64AsmBackend(const Target &T, StringRef TT) { 455 MCAsmBackend *llvm::createX86_64AsmBackend(const Target &T, StringRef TT) {
456 Triple TheTriple(TT); 456 Triple TheTriple(TT);
457 457
458 if (TheTriple.isOSDarwin() || TheTriple.getEnvironment() == Triple::MachO) 458 if (TheTriple.isOSDarwin() || TheTriple.isEnvironmentMachO())
459 return new DarwinX86_64AsmBackend(T); 459 return new DarwinX86_64AsmBackend(T);
460 460
461 if (TheTriple.isOSWindows()) 461 if (TheTriple.isOSWindows())
462 return new WindowsX86AsmBackend(T, true); 462 return new WindowsX86AsmBackend(T, true);
463 463
464 return new ELFX86_64AsmBackend(T, TheTriple.getOS()); 464 return new ELFX86_64AsmBackend(T, TheTriple.getOS());
465 } 465 }
OLDNEW
« 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