search for: tlofmacho

Displaying 3 results from an estimated 3 matches for "tlofmacho".

2010 May 11
0
[LLVMdev] AsmPrinter::EmitLinkage
...orm a similar function as MCAsmInfo, though this doesn't look to be responsible for directing the AsmPrinter, its only responsibility appears to be providing section assignment logic. TLOF is designed to be specific to the object file, but ideally not target specific. This means we should have TLOFMacho but not TLOFX86Macho. > Another candidate I considered what TargetAsmBackend, but that appears to be meant to sit behind MCStreamer. Right, that is the actual implementation of the object writer for a specific target. > Another approach would be to further subdivide X86AsmPrinter to have o...
2010 May 11
2
[LLVMdev] AsmPrinter::EmitLinkage
I have been looking over AsmPrinter::EmitLinkage (around line 195 of lib\CodeGen\AsmPrinter\AsmPrinter.cpp) and it seems that its implementation will vary quite a bit depending on what object file format is in use (MachO, ELF, or COFF). Would it make sense to delegate the implementation to a specialized object from current the object file format? I am tempted to make it the MCAsmInfo
2010 May 11
2
[LLVMdev] AsmPrinter::EmitLinkage
...; MCAsmInfo, though this doesn't look to be responsible for directing the > AsmPrinter, its only responsibility appears to be providing section > assignment logic. > > TLOF is designed to be specific to the object file, but ideally not target > specific. This means we should have TLOFMacho but not TLOFX86Macho. > > In the context I am looking at, it would be specific to the object file. I was just pointing out that as it stands, it appears to only be responsible for section assignment, and not any logic that would affect the AsmPrinter's decision on what to emit. I don'...