~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/lib/ExecutionEngine/JIT/JITDwarfEmitter.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (0.41.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100312113004-b0fop4bkycszdd0z
Tags: 0.96~rc1+dfsg-0ubuntu1
* New upstream RC - FFE (LP: #537636):
  - Add OfficialDatabaseOnly option to clamav-base.postinst.in
  - Add LocalSocketGroup option to clamav-base.postinst.in
  - Add LocalSocketMode option to clamav-base.postinst.in
  - Add CrossFilesystems option to clamav-base.postinst.in
  - Add ClamukoScannerCount option to clamav-base.postinst.in
  - Add BytecodeSecurity opiton to clamav-base.postinst.in
  - Add DetectionStatsHostID option to clamav-freshclam.postinst.in
  - Add Bytecode option to clamav-freshclam.postinst.in
  - Add MilterSocketGroup option to clamav-milter.postinst.in
  - Add MilterSocketMode option to clamav-milter.postinst.in
  - Add ReportHostname option to clamav-milter.postinst.in
  - Bump libclamav SO version to 6.1.0 in libclamav6.install
  - Drop clamdmon from clamav.examples (no longer shipped by upstream)
  - Drop libclamav.a from libclamav-dev.install (not built by upstream)
  - Update SO version for lintian override for libclamav6
  - Add new Bytecode Testing Tool, usr/bin/clambc, to clamav.install
  - Add build-depends on python and python-setuptools for new test suite
  - Update debian/copyright for the embedded copy of llvm (using the system
    llvm is not currently feasible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//===------ JITDwarfEmitter.h - Write dwarf tables into memory ------------===//
 
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 defines a JITDwarfEmitter object that is used by the JIT to
 
11
// write dwarf tables to memory.
 
12
//
 
13
//===----------------------------------------------------------------------===//
 
14
 
 
15
#ifndef LLVM_EXECUTION_ENGINE_JIT_DWARFEMITTER_H
 
16
#define LLVM_EXECUTION_ENGINE_JIT_DWARFEMITTER_H
 
17
 
 
18
namespace llvm {
 
19
 
 
20
class Function;
 
21
class JITCodeEmitter;
 
22
class MachineFunction;
 
23
class MachineModuleInfo;
 
24
class MachineMove;
 
25
class TargetData;
 
26
class TargetMachine;
 
27
class TargetRegisterInfo;
 
28
 
 
29
class JITDwarfEmitter {
 
30
  const TargetData* TD;
 
31
  JITCodeEmitter* JCE;
 
32
  const TargetRegisterInfo* RI;
 
33
  MachineModuleInfo* MMI;
 
34
  JIT& Jit;
 
35
  bool stackGrowthDirection;
 
36
  
 
37
  unsigned char* EmitExceptionTable(MachineFunction* MF,
 
38
                                    unsigned char* StartFunction, 
 
39
                                    unsigned char* EndFunction) const;
 
40
 
 
41
  void EmitFrameMoves(intptr_t BaseLabelPtr, 
 
42
                      const std::vector<MachineMove> &Moves) const;
 
43
    
 
44
  unsigned char* EmitCommonEHFrame(const Function* Personality) const;
 
45
 
 
46
  unsigned char* EmitEHFrame(const Function* Personality, 
 
47
                             unsigned char* StartBufferPtr,
 
48
                             unsigned char* StartFunction, 
 
49
                             unsigned char* EndFunction,
 
50
                             unsigned char* ExceptionTable) const;
 
51
    
 
52
  unsigned GetExceptionTableSizeInBytes(MachineFunction* MF) const;
 
53
  
 
54
  unsigned
 
55
    GetFrameMovesSizeInBytes(intptr_t BaseLabelPtr, 
 
56
                             const std::vector<MachineMove> &Moves) const;
 
57
    
 
58
  unsigned GetCommonEHFrameSizeInBytes(const Function* Personality) const;
 
59
 
 
60
  unsigned GetEHFrameSizeInBytes(const Function* Personality, 
 
61
                                 unsigned char* StartFunction) const; 
 
62
    
 
63
public:
 
64
  
 
65
  JITDwarfEmitter(JIT& jit);
 
66
  
 
67
  unsigned char* EmitDwarfTable(MachineFunction& F, 
 
68
                                JITCodeEmitter& JCE,
 
69
                                unsigned char* StartFunction,
 
70
                                unsigned char* EndFunction,
 
71
                                unsigned char* &EHFramePtr);
 
72
  
 
73
  
 
74
  unsigned GetDwarfTableSizeInBytes(MachineFunction& F, 
 
75
                                    JITCodeEmitter& JCE,
 
76
                                    unsigned char* StartFunction,
 
77
                                    unsigned char* EndFunction);
 
78
 
 
79
  void setModuleInfo(MachineModuleInfo* Info) {
 
80
    MMI = Info;
 
81
  }
 
82
};
 
83
 
 
84
 
 
85
} // end namespace llvm
 
86
 
 
87
#endif // LLVM_EXECUTION_ENGINE_JIT_DWARFEMITTER_H