pass machinemoduleinfo down into getSymbolForDwarfGlobalReference,
[llvm/avr.git] / lib / Target / CellSPU / SPUSubtarget.cpp
blob0f18b7fa8b26a3eec0ecefeb448a4ce02a3e1afc
1 //===- SPUSubtarget.cpp - STI Cell SPU Subtarget Information --------------===//
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 //===----------------------------------------------------------------------===//
9 //
10 // This file implements the CellSPU-specific subclass of TargetSubtarget.
12 //===----------------------------------------------------------------------===//
14 #include "SPUSubtarget.h"
15 #include "SPU.h"
16 #include "SPUGenSubtarget.inc"
18 using namespace llvm;
20 SPUSubtarget::SPUSubtarget(const std::string &TT, const std::string &FS) :
21 StackAlignment(16),
22 ProcDirective(SPU::DEFAULT_PROC),
23 UseLargeMem(false)
25 // Should be the target SPU processor type. For now, since there's only
26 // one, simply default to the current "v0" default:
27 std::string default_cpu("v0");
29 // Parse features string.
30 ParseSubtargetFeatures(FS, default_cpu);
33 /// SetJITMode - This is called to inform the subtarget info that we are
34 /// producing code for the JIT.
35 void SPUSubtarget::SetJITMode() {