mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Eliminate TargetAsmInfo::getCompactUnwindEncoding. This get rid of the
use of TargetFrameLowering in TargetAsmInfo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135439 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2d28617de2
commit
c8c3acfea4
@ -15,7 +15,6 @@
|
||||
#define LLVM_TARGET_TARGETASMINFO_H
|
||||
|
||||
#include "llvm/Target/TargetLoweringObjectFile.h"
|
||||
#include "llvm/Target/TargetFrameLowering.h"
|
||||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
|
||||
namespace llvm {
|
||||
@ -25,7 +24,6 @@ namespace llvm {
|
||||
class TargetLoweringObjectFile;
|
||||
|
||||
class TargetAsmInfo {
|
||||
const TargetFrameLowering *TFI;
|
||||
const TargetLoweringObjectFile *TLOF;
|
||||
|
||||
public:
|
||||
@ -62,12 +60,6 @@ public:
|
||||
bool isFunctionEHFrameSymbolPrivate() const {
|
||||
return TLOF->isFunctionEHFrameSymbolPrivate();
|
||||
}
|
||||
|
||||
int getCompactUnwindEncoding(ArrayRef<MCCFIInstruction> Instrs,
|
||||
int DataAlignmentFactor,
|
||||
bool IsEH) const {
|
||||
return TFI->getCompactUnwindEncoding(Instrs, DataAlignmentFactor, IsEH);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -8,14 +8,11 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Target/TargetAsmInfo.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "llvm/Target/TargetLowering.h"
|
||||
#include "llvm/Target/TargetLoweringObjectFile.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
#include "llvm/Target/TargetRegisterInfo.h"
|
||||
using namespace llvm;
|
||||
|
||||
TargetAsmInfo::TargetAsmInfo(const TargetMachine &TM) {
|
||||
TLOF = &TM.getTargetLowering()->getObjFileLowering();
|
||||
TFI = TM.getFrameLowering();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user