mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
cf5967630b
llvm-svn: 123170
28 lines
1.0 KiB
C++
28 lines
1.0 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();
|
|
const TargetFrameLowering &TFI = *TM.getFrameLowering();
|
|
StackDir = TFI.getStackGrowthDirection();
|
|
TRI = TM.getRegisterInfo();
|
|
TFI.getInitialFrameState(InitialFrameState);
|
|
}
|