PPCAsmBackend.cpp (234353) | PPCAsmBackend.cpp (241430) |
---|---|
1//===-- PPCAsmBackend.cpp - PPC 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//===----------------------------------------------------------------------===// --- 167 unchanged lines hidden (view full) --- 176 } 177 }; 178 179} // end anonymous namespace 180 181 182 183 | 1//===-- PPCAsmBackend.cpp - PPC 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//===----------------------------------------------------------------------===// --- 167 unchanged lines hidden (view full) --- 176 } 177 }; 178 179} // end anonymous namespace 180 181 182 183 |
184MCAsmBackend *llvm::createPPCAsmBackend(const Target &T, StringRef TT) { | 184MCAsmBackend *llvm::createPPCAsmBackend(const Target &T, StringRef TT, StringRef CPU) { |
185 if (Triple(TT).isOSDarwin()) 186 return new DarwinPPCAsmBackend(T); 187 188 uint8_t OSABI = MCELFObjectTargetWriter::getOSABI(Triple(TT).getOS()); 189 return new ELFPPCAsmBackend(T, OSABI); 190} | 185 if (Triple(TT).isOSDarwin()) 186 return new DarwinPPCAsmBackend(T); 187 188 uint8_t OSABI = MCELFObjectTargetWriter::getOSABI(Triple(TT).getOS()); 189 return new ELFPPCAsmBackend(T, OSABI); 190} |