llvm.org GIT mirror llvm / 8609c7c
pass machinemoduleinfo down into getSymbolForDwarfGlobalReference, currently unused. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82157 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
5 changed file(s) with 10 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1717 #include "llvm/MC/SectionKind.h"
1818
1919 namespace llvm {
20 class MachineModuleInfo;
2021 class Mangler;
22 class MCAsmInfo;
23 class MCExpr;
2124 class MCSection;
2225 class MCSectionMachO;
2326 class MCContext;
2427 class GlobalValue;
2528 class StringRef;
2629 class TargetMachine;
27 class MCAsmInfo;
28 class MCExpr;
2930
3031 class TargetLoweringObjectFile {
3132 MCContext *Ctx;
187188 ///
188189 virtual const MCExpr *
189190 getSymbolForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
191 MachineModuleInfo *MMI,
190192 bool &IsIndirect, bool &IsPCRel) const;
191193
192194 protected:
319321 /// defaults to returning a stub reference.
320322 virtual const MCExpr *
321323 getSymbolForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
324 MachineModuleInfo *MMI,
322325 bool &IsIndirect, bool &IsPCRel) const;
323326 };
324327
120120 // In non-static mode, ask the object file how to represent this reference.
121121 PersonalityRef =
122122 TLOF.getSymbolForDwarfGlobalReference(PersonalityFn, Asm->Mang,
123 Asm->MMI,
123124 IsPersonalityIndirect,
124125 IsPersonalityPCRel);
125126 }
289289 ///
290290 const MCExpr *TargetLoweringObjectFile::
291291 getSymbolForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
292 MachineModuleInfo *MMI,
292293 bool &IsIndirect, bool &IsPCRel) const {
293294 // The generic implementation of this just returns a direct reference to the
294295 // symbol.
955956
956957 const MCExpr *TargetLoweringObjectFileMachO::
957958 getSymbolForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
959 MachineModuleInfo *MMI,
958960 bool &IsIndirect, bool &IsPCRel) const {
959961 // The mach-o version of this method defaults to returning a stub reference.
960962 IsIndirect = true;
1414
1515 const MCExpr *X8664_MachoTargetObjectFile::
1616 getSymbolForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
17 MachineModuleInfo *MMI,
1718 bool &IsIndirect, bool &IsPCRel) const {
1819
1920 // On Darwin/X86-64, we can reference dwarf symbols with foo@GOTPCREL+4, which
2020
2121 virtual const MCExpr *
2222 getSymbolForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
23 MachineModuleInfo *MMI,
2324 bool &IsIndirect, bool &IsPCRel) const;
2425 };
2526 } // end namespace llvm