mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
4ae970b393
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134640 91177308-0d34-0410-b5e6-96231b3b80d8
35 lines
1.3 KiB
C++
35 lines
1.3 KiB
C++
//===-- llvm/Target/TargetAsmInfo.cpp - Target Assembly Info --------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#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();
|
|
const TargetData &TD = *TM.getTargetData();
|
|
IsLittleEndian = TD.isLittleEndian();
|
|
PointerSize = TD.getPointerSize();
|
|
|
|
TFI = TM.getFrameLowering();
|
|
StackDir = TFI->getStackGrowthDirection();
|
|
TRI = TM.getRegisterInfo();
|
|
TFI->getInitialFrameState(InitialFrameState);
|
|
}
|
|
|
|
int TargetAsmInfo::getCompactUnwindEncoding(ArrayRef<MCCFIInstruction> Instrs,
|
|
int DataAlignmentFactor,
|
|
bool IsEH) const {
|
|
return TFI->getCompactUnwindEncoding(Instrs, DataAlignmentFactor, IsEH);
|
|
}
|