Silence -Wunused-variable in release builds.
[llvm/stm8.git] / lib / Target / TargetAsmInfo.cpp
blob1d57d8498e6625f7de4d0864d110b3a6fba1cfbb
1 //===-- llvm/Target/TargetAsmInfo.cpp - Target Assembly Info --------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
10 #include "llvm/Target/TargetAsmInfo.h"
11 #include "llvm/Target/TargetData.h"
12 #include "llvm/Target/TargetLowering.h"
13 #include "llvm/Target/TargetLoweringObjectFile.h"
14 #include "llvm/Target/TargetMachine.h"
15 #include "llvm/Target/TargetRegisterInfo.h"
16 using namespace llvm;
18 TargetAsmInfo::TargetAsmInfo(const TargetMachine &TM) {
19 TLOF = &TM.getTargetLowering()->getObjFileLowering();
20 const TargetData &TD = *TM.getTargetData();
21 IsLittleEndian = TD.isLittleEndian();
22 PointerSize = TD.getPointerSize();
24 TFI = TM.getFrameLowering();
25 StackDir = TFI->getStackGrowthDirection();
26 TRI = TM.getRegisterInfo();
27 TFI->getInitialFrameState(InitialFrameState);
30 int TargetAsmInfo::getCompactUnwindEncoding(ArrayRef<MCCFIInstruction> Instrs,
31 int DataAlignmentFactor,
32 bool IsEH) const {
33 return TFI->getCompactUnwindEncoding(Instrs, DataAlignmentFactor, IsEH);