forked from OSchip/llvm-project
parent
11af28bdbd
commit
1a423d8b35
|
@ -20,6 +20,7 @@
|
||||||
#include "llvm/Target/TargetRegisterInfo.h"
|
#include "llvm/Target/TargetRegisterInfo.h"
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
template <typename T> class ArrayRef;
|
||||||
class MCSection;
|
class MCSection;
|
||||||
class MCContext;
|
class MCContext;
|
||||||
class MachineFunction;
|
class MachineFunction;
|
||||||
|
@ -84,10 +85,8 @@ public:
|
||||||
return TLOF->isFunctionEHFrameSymbolPrivate();
|
return TLOF->isFunctionEHFrameSymbolPrivate();
|
||||||
}
|
}
|
||||||
|
|
||||||
int getCompactUnwindEncoding(const std::vector<MCCFIInstruction> &Instrs,
|
int getCompactUnwindEncoding(ArrayRef<MCCFIInstruction> Instrs,
|
||||||
int DataAlignmentFactor, bool IsEH) const {
|
int DataAlignmentFactor, bool IsEH) const;
|
||||||
return TFI->getCompactUnwindEncoding(Instrs, DataAlignmentFactor, IsEH);
|
|
||||||
}
|
|
||||||
|
|
||||||
const unsigned *getCalleeSavedRegs(MachineFunction *MF = 0) const {
|
const unsigned *getCalleeSavedRegs(MachineFunction *MF = 0) const {
|
||||||
return TRI->getCalleeSavedRegs(MF);
|
return TRI->getCalleeSavedRegs(MF);
|
||||||
|
|
|
@ -26,3 +26,9 @@ TargetAsmInfo::TargetAsmInfo(const TargetMachine &TM) {
|
||||||
TRI = TM.getRegisterInfo();
|
TRI = TM.getRegisterInfo();
|
||||||
TFI->getInitialFrameState(InitialFrameState);
|
TFI->getInitialFrameState(InitialFrameState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int TargetAsmInfo::getCompactUnwindEncoding(ArrayRef<MCCFIInstruction> Instrs,
|
||||||
|
int DataAlignmentFactor,
|
||||||
|
bool IsEH) const {
|
||||||
|
return TFI->getCompactUnwindEncoding(Instrs, DataAlignmentFactor, IsEH);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue