Changeset 319 for clamav/trunk/libclamav/c++/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
- Timestamp:
- Apr 19, 2011, 11:12:07 PM (14 years ago)
- Location:
- clamav/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
clamav/trunk ¶
-
Property svn:mergeinfo
set to
/clamav/vendor/0.97 merged eligible
-
Property svn:mergeinfo
set to
-
TabularUnified clamav/trunk/libclamav/c++/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h ¶
r189 r319 34 34 35 35 class TargetLoweringObjectFileELF : public TargetLoweringObjectFile { 36 mutable void *UniquingMap;37 36 protected: 38 37 /// TLSDataSection - Section directive for Thread Local data. … … 53 52 const MCSection *MergeableConst8Section; 54 53 const MCSection *MergeableConst16Section; 55 56 protected:57 const MCSection *getELFSection(StringRef Section, unsigned Type,58 unsigned Flags, SectionKind Kind,59 bool IsExplicit = false) const;60 54 public: 61 TargetLoweringObjectFileELF() : UniquingMap(0){}62 ~TargetLoweringObjectFileELF() ;55 TargetLoweringObjectFileELF() {} 56 ~TargetLoweringObjectFileELF() {} 63 57 64 58 virtual void Initialize(MCContext &Ctx, const TargetMachine &TM); … … 79 73 Mangler *Mang, const TargetMachine &TM) const; 80 74 81 /// get SymbolForDwarfGlobalReference - Return an MCExpr to use for a reference75 /// getExprForDwarfGlobalReference - Return an MCExpr to use for a reference 82 76 /// to the specified global variable from exception handling information. 83 77 /// 84 78 virtual const MCExpr * 85 getSymbolForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 86 MachineModuleInfo *MMI, unsigned Encoding) const; 79 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 80 MachineModuleInfo *MMI, unsigned Encoding, 81 MCStreamer &Streamer) const; 87 82 }; 88 83 … … 90 85 91 86 class TargetLoweringObjectFileMachO : public TargetLoweringObjectFile { 92 mutable void *UniquingMap; 93 87 /// TLSDataSection - Section for thread local data. 88 /// 89 const MCSection *TLSDataSection; // Defaults to ".tdata". 90 91 /// TLSBSSSection - Section for thread local uninitialized data. 92 /// 93 const MCSection *TLSBSSSection; // Defaults to ".tbss". 94 95 /// TLSTLVSection - Section for thread local structure infomation. 96 /// Contains the source code name of the variable, visibility and a pointer 97 /// to the initial value (.tdata or .tbss). 98 const MCSection *TLSTLVSection; // Defaults to ".tlv". 99 100 /// TLSThreadInitSection - Section for thread local data initialization 101 /// functions. 102 const MCSection *TLSThreadInitSection; // Defaults to ".thread_init_func". 103 94 104 const MCSection *CStringSection; 95 105 const MCSection *UStringSection; 96 106 const MCSection *TextCoalSection; 97 107 const MCSection *ConstTextCoalSection; 98 const MCSection *ConstDataCoalSection;99 108 const MCSection *ConstDataSection; 100 109 const MCSection *DataCoalSection; … … 108 117 const MCSection *NonLazySymbolPointerSection; 109 118 public: 110 TargetLoweringObjectFileMachO() : UniquingMap(0){}111 ~TargetLoweringObjectFileMachO() ;119 TargetLoweringObjectFileMachO() {} 120 ~TargetLoweringObjectFileMachO() {} 112 121 113 122 virtual void Initialize(MCContext &Ctx, const TargetMachine &TM); … … 129 138 Mangler *) const; 130 139 131 /// getMachOSection - Return the MCSection for the specified mach-o section.132 /// This requires the operands to be valid.133 const MCSectionMachO *getMachOSection(StringRef Segment,134 StringRef Section,135 unsigned TypeAndAttributes,136 SectionKind K) const {137 return getMachOSection(Segment, Section, TypeAndAttributes, 0, K);138 }139 const MCSectionMachO *getMachOSection(StringRef Segment,140 StringRef Section,141 unsigned TypeAndAttributes,142 unsigned Reserved2,143 SectionKind K) const;144 145 140 /// getTextCoalSection - Return the "__TEXT,__textcoal_nt" section we put weak 146 141 /// text symbols into. … … 167 162 } 168 163 169 /// get SymbolForDwarfGlobalReference - The mach-o version of this method164 /// getExprForDwarfGlobalReference - The mach-o version of this method 170 165 /// defaults to returning a stub reference. 171 166 virtual const MCExpr * 172 getSymbolForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 173 MachineModuleInfo *MMI, unsigned Encoding) const; 167 getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang, 168 MachineModuleInfo *MMI, unsigned Encoding, 169 MCStreamer &Streamer) const; 174 170 175 171 virtual unsigned getPersonalityEncoding() const; … … 182 178 183 179 class TargetLoweringObjectFileCOFF : public TargetLoweringObjectFile { 184 mutable void *UniquingMap;180 const MCSection *DrectveSection; 185 181 public: 186 TargetLoweringObjectFileCOFF() : UniquingMap(0){}187 ~TargetLoweringObjectFileCOFF() ;182 TargetLoweringObjectFileCOFF() {} 183 ~TargetLoweringObjectFileCOFF() {} 188 184 189 185 virtual void Initialize(MCContext &Ctx, const TargetMachine &TM); 186 187 virtual const MCSection *getDrectveSection() const { return DrectveSection; } 190 188 191 189 virtual const MCSection * … … 196 194 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, 197 195 Mangler *Mang, const TargetMachine &TM) const; 198 199 /// getCOFFSection - Return the MCSection for the specified COFF section.200 /// FIXME: Switch this to a semantic view eventually.201 const MCSection *getCOFFSection(StringRef Name, bool isDirective,202 SectionKind K) const;203 196 }; 204 197
Note:
See TracChangeset
for help on using the changeset viewer.