llvm.org GIT mirror llvm / f633070
Make helper static and place random global into the llvm namespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206116 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 6 years ago
4 changed file(s) with 9 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
534534 return true;
535535 }
536536
537 template<> bool IsCPSRDead(MachineInstr* MI) {
537 template <> bool llvm::IsCPSRDead(MachineInstr *MI) {
538538 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
539539 const MachineOperand &MO = MI->getOperand(i);
540540 if (!MO.isReg() || MO.isUndef() || MO.isUse())
1515
1616 #include "MCTargetDesc/ARMMCTargetDesc.h"
1717
18 namespace llvm {
19
1820 template // could be MachineInstr or MCInst
1921 bool IsCPSRDead(InstrType *Instr);
20
21 namespace llvm {
2222
2323 template // could be MachineInstr or MCInst
2424 inline bool isV8EligibleForIT(InstrType *Instr) {
79747974 return Match_Success;
79757975 }
79767976
7977 template<> inline bool IsCPSRDead(MCInst* Instr) {
7977 template <> inline bool llvm::IsCPSRDead(MCInst *Instr) {
79787978 return true; // In an assembly source, no need to second-guess
79797979 }
79807980
215215 return Success;
216216 }
217217
218 MCSymbolizer *createARM64ExternalSymbolizer(
219 StringRef TT,
220 LLVMOpInfoCallback GetOpInfo,
221 LLVMSymbolLookupCallback SymbolLookUp,
222 void *DisInfo, MCContext *Ctx,
223 MCRelocationInfo *RelInfo) {
218 static MCSymbolizer *
219 createARM64ExternalSymbolizer(StringRef TT, LLVMOpInfoCallback GetOpInfo,
220 LLVMSymbolLookupCallback SymbolLookUp,
221 void *DisInfo, MCContext *Ctx,
222 MCRelocationInfo *RelInfo) {
224223 return new llvm::ARM64ExternalSymbolizer(
225224 *Ctx,
226225 std::unique_ptr(RelInfo),