ARMAsmBackend.cpp (239462) | ARMAsmBackend.cpp (241430) |
---|---|
1//===-- ARMAsmBackend.cpp - ARM Assembler Backend -------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 660 unchanged lines hidden (view full) --- 669 // For each byte of the fragment that the fixup touches, mask in the 670 // bits from the fixup value. 671 for (unsigned i = 0; i != NumBytes; ++i) 672 Data[Offset + i] |= uint8_t((Value >> (i * 8)) & 0xff); 673} 674 675} // end anonymous namespace 676 | 1//===-- ARMAsmBackend.cpp - ARM Assembler Backend -------------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 660 unchanged lines hidden (view full) --- 669 // For each byte of the fragment that the fixup touches, mask in the 670 // bits from the fixup value. 671 for (unsigned i = 0; i != NumBytes; ++i) 672 Data[Offset + i] |= uint8_t((Value >> (i * 8)) & 0xff); 673} 674 675} // end anonymous namespace 676 |
677MCAsmBackend *llvm::createARMAsmBackend(const Target &T, StringRef TT) { | 677MCAsmBackend *llvm::createARMAsmBackend(const Target &T, StringRef TT, StringRef CPU) { |
678 Triple TheTriple(TT); 679 680 if (TheTriple.isOSDarwin()) { 681 if (TheTriple.getArchName() == "armv4t" || 682 TheTriple.getArchName() == "thumbv4t") 683 return new DarwinARMAsmBackend(T, TT, object::mach::CSARM_V4T); 684 else if (TheTriple.getArchName() == "armv5e" || 685 TheTriple.getArchName() == "thumbv5e") --- 13 unchanged lines hidden --- | 678 Triple TheTriple(TT); 679 680 if (TheTriple.isOSDarwin()) { 681 if (TheTriple.getArchName() == "armv4t" || 682 TheTriple.getArchName() == "thumbv4t") 683 return new DarwinARMAsmBackend(T, TT, object::mach::CSARM_V4T); 684 else if (TheTriple.getArchName() == "armv5e" || 685 TheTriple.getArchName() == "thumbv5e") --- 13 unchanged lines hidden --- |