Ignore:
Timestamp:
Apr 19, 2011, 11:12:07 PM (14 years ago)
Author:
Yuri Dario
Message:

clamav: update trunk to 0.97.

Location:
clamav/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • clamav/trunk

  • TabularUnified clamav/trunk/libclamav/c++/llvm/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h

    r189 r319  
    3434
    3535class TargetLoweringObjectFileELF : public TargetLoweringObjectFile {
    36   mutable void *UniquingMap;
    3736protected:
    3837  /// TLSDataSection - Section directive for Thread Local data.
     
    5352  const MCSection *MergeableConst8Section;
    5453  const MCSection *MergeableConst16Section;
    55 
    56 protected:
    57   const MCSection *getELFSection(StringRef Section, unsigned Type,
    58                                  unsigned Flags, SectionKind Kind,
    59                                  bool IsExplicit = false) const;
    6054public:
    61   TargetLoweringObjectFileELF() : UniquingMap(0) {}
    62   ~TargetLoweringObjectFileELF();
     55  TargetLoweringObjectFileELF() {}
     56  ~TargetLoweringObjectFileELF() {}
    6357
    6458  virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
     
    7973                         Mangler *Mang, const TargetMachine &TM) const;
    8074
    81   /// getSymbolForDwarfGlobalReference - Return an MCExpr to use for a reference
     75  /// getExprForDwarfGlobalReference - Return an MCExpr to use for a reference
    8276  /// to the specified global variable from exception handling information.
    8377  ///
    8478  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;
    8782};
    8883
     
    9085
    9186class 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 
    94104  const MCSection *CStringSection;
    95105  const MCSection *UStringSection;
    96106  const MCSection *TextCoalSection;
    97107  const MCSection *ConstTextCoalSection;
    98   const MCSection *ConstDataCoalSection;
    99108  const MCSection *ConstDataSection;
    100109  const MCSection *DataCoalSection;
     
    108117  const MCSection *NonLazySymbolPointerSection;
    109118public:
    110   TargetLoweringObjectFileMachO() : UniquingMap(0) {}
    111   ~TargetLoweringObjectFileMachO();
     119  TargetLoweringObjectFileMachO() {}
     120  ~TargetLoweringObjectFileMachO() {}
    112121
    113122  virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
     
    129138                                          Mangler *) const;
    130139
    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 
    145140  /// getTextCoalSection - Return the "__TEXT,__textcoal_nt" section we put weak
    146141  /// text symbols into.
     
    167162  }
    168163
    169   /// getSymbolForDwarfGlobalReference - The mach-o version of this method
     164  /// getExprForDwarfGlobalReference - The mach-o version of this method
    170165  /// defaults to returning a stub reference.
    171166  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;
    174170
    175171  virtual unsigned getPersonalityEncoding() const;
     
    182178
    183179class TargetLoweringObjectFileCOFF : public TargetLoweringObjectFile {
    184   mutable void *UniquingMap;
     180  const MCSection *DrectveSection;
    185181public:
    186   TargetLoweringObjectFileCOFF() : UniquingMap(0) {}
    187   ~TargetLoweringObjectFileCOFF();
     182  TargetLoweringObjectFileCOFF() {}
     183  ~TargetLoweringObjectFileCOFF() {}
    188184
    189185  virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
     186
     187  virtual const MCSection *getDrectveSection() const { return DrectveSection; }
    190188
    191189  virtual const MCSection *
     
    196194  SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
    197195                         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;
    203196};
    204197
Note: See TracChangeset for help on using the changeset viewer.