mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Make helper static and place random global into the llvm namespace.
llvm-svn: 206116
This commit is contained in:
parent
5aa6f4f593
commit
224e38407d
@ -535,7 +535,7 @@ bool ARMBaseInstrInfo::isPredicable(MachineInstr *MI) const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template<> bool IsCPSRDead<MachineInstr>(MachineInstr* MI) {
|
||||
template <> bool llvm::IsCPSRDead<MachineInstr>(MachineInstr *MI) {
|
||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||
const MachineOperand &MO = MI->getOperand(i);
|
||||
if (!MO.isReg() || MO.isUndef() || MO.isUse())
|
||||
|
@ -16,11 +16,11 @@
|
||||
|
||||
#include "MCTargetDesc/ARMMCTargetDesc.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
template<typename InstrType> // could be MachineInstr or MCInst
|
||||
bool IsCPSRDead(InstrType *Instr);
|
||||
|
||||
namespace llvm {
|
||||
|
||||
template<typename InstrType> // could be MachineInstr or MCInst
|
||||
inline bool isV8EligibleForIT(InstrType *Instr) {
|
||||
switch (Instr->getOpcode()) {
|
||||
|
@ -7975,7 +7975,7 @@ unsigned ARMAsmParser::checkTargetMatchPredicate(MCInst &Inst) {
|
||||
return Match_Success;
|
||||
}
|
||||
|
||||
template<> inline bool IsCPSRDead<MCInst>(MCInst* Instr) {
|
||||
template <> inline bool llvm::IsCPSRDead<MCInst>(MCInst *Instr) {
|
||||
return true; // In an assembly source, no need to second-guess
|
||||
}
|
||||
|
||||
|
@ -216,12 +216,11 @@ DecodeStatus ARM64Disassembler::getInstruction(MCInst &MI, uint64_t &Size,
|
||||
return Success;
|
||||
}
|
||||
|
||||
MCSymbolizer *createARM64ExternalSymbolizer(
|
||||
StringRef TT,
|
||||
LLVMOpInfoCallback GetOpInfo,
|
||||
LLVMSymbolLookupCallback SymbolLookUp,
|
||||
void *DisInfo, MCContext *Ctx,
|
||||
MCRelocationInfo *RelInfo) {
|
||||
static MCSymbolizer *
|
||||
createARM64ExternalSymbolizer(StringRef TT, LLVMOpInfoCallback GetOpInfo,
|
||||
LLVMSymbolLookupCallback SymbolLookUp,
|
||||
void *DisInfo, MCContext *Ctx,
|
||||
MCRelocationInfo *RelInfo) {
|
||||
return new llvm::ARM64ExternalSymbolizer(
|
||||
*Ctx,
|
||||
std::unique_ptr<MCRelocationInfo>(RelInfo),
|
||||
|
Loading…
Reference in New Issue
Block a user