~ubuntu-branches/ubuntu/wily/clamav/wily-proposed

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/include/llvm/PassManager.h

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman, Sebastian Andrzej Siewior, Andreas Cadhalpun, Scott Kitterman, Javier Fernández-Sanguino
  • Date: 2015-01-28 00:25:13 UTC
  • mfrom: (0.48.14 sid)
  • Revision ID: package-import@ubuntu.com-20150128002513-lil2oi74cooy4lzr
Tags: 0.98.6+dfsg-1
[ Sebastian Andrzej Siewior ]
* update "fix-ssize_t-size_t-off_t-printf-modifier", include of misc.h was
  missing but was pulled in via the systemd patch.
* Don't leak return codes from libmspack to clamav API. (Closes: #774686).

[ Andreas Cadhalpun ]
* Add patch to avoid emitting incremental progress messages when not
  outputting to a terminal. (Closes: #767350)
* Update lintian-overrides for unused-file-paragraph-in-dep5-copyright.
* clamav-base.postinst: always chown /var/log/clamav and /var/lib/clamav
  to clamav:clamav, not only on fresh installations. (Closes: #775400)
* Adapt the clamav-daemon and clamav-freshclam logrotate scripts,
  so that they correctly work under systemd.
* Move the PidFile variable from the clamd/freshclam configuration files
  to the init scripts. This makes the init scripts more robust against
  misconfiguration and avoids error messages with systemd. (Closes: #767353)
* debian/copyright: drop files from Files-Excluded only present in github
  tarballs
* Drop Workaround-a-bug-in-libc-on-Hurd.patch, because hurd got fixed.
  (see #752237)
* debian/rules: Remove useless --with-system-tommath --without-included-ltdl
  configure options.

[ Scott Kitterman ]
* Stop stripping llvm when repacking the tarball as the system llvm on some
  releases is too old to use
* New upstream bugfix release
  - Library shared object revisions.
  - Includes a patch from Sebastian Andrzej Siewior making ClamAV pid files
    compatible with systemd.
  - Fix a heap out of bounds condition with crafted Yoda's crypter files.
    This issue was discovered by Felix Groebert of the Google Security Team.
  - Fix a heap out of bounds condition with crafted mew packer files. This
    issue was discovered by Felix Groebert of the Google Security Team.
  - Fix a heap out of bounds condition with crafted upx packer files. This
    issue was discovered by Kevin Szkudlapski of Quarkslab.
  - Fix a heap out of bounds condition with crafted upack packer files. This
    issue was discovered by Sebastian Andrzej Siewior. CVE-2014-9328.
  - Compensate a crash due to incorrect compiler optimization when handling
    crafted petite packer files. This issue was discovered by Sebastian
    Andrzej Siewior.
* Update lintian override for embedded zlib to match new so version

[ Javier Fernández-Sanguino ]
* Updated Spanish Debconf template translation (Closes: #773563)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//===- llvm/PassManager.h - Container for Passes ----------------*- C++ -*-===//
 
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 the PassManager class.  This class is used to hold,
 
11
// maintain, and optimize execution of Passes.  The PassManager class ensures
 
12
// that analysis results are available before a pass runs, and that Pass's are
 
13
// destroyed when the PassManager is destroyed.
 
14
//
 
15
//===----------------------------------------------------------------------===//
 
16
 
 
17
#ifndef LLVM_PASSMANAGER_H
 
18
#define LLVM_PASSMANAGER_H
 
19
 
 
20
#include "llvm/Pass.h"
 
21
 
 
22
namespace llvm {
 
23
 
 
24
class Pass;
 
25
class Module;
 
26
 
 
27
class PassManagerImpl;
 
28
class FunctionPassManagerImpl;
 
29
 
 
30
/// PassManagerBase - An abstract interface to allow code to add passes to
 
31
/// a pass manager without having to hard-code what kind of pass manager
 
32
/// it is.
 
33
class PassManagerBase {
 
34
public:
 
35
  virtual ~PassManagerBase();
 
36
 
 
37
  /// add - Add a pass to the queue of passes to run.  This passes ownership of
 
38
  /// the Pass to the PassManager.  When the PassManager is destroyed, the pass
 
39
  /// will be destroyed as well, so there is no need to delete the pass.  This
 
40
  /// implies that all passes MUST be allocated with 'new'.
 
41
  virtual void add(Pass *P) = 0;
 
42
};
 
43
 
 
44
/// PassManager manages ModulePassManagers
 
45
class PassManager : public PassManagerBase {
 
46
public:
 
47
 
 
48
  PassManager();
 
49
  ~PassManager();
 
50
 
 
51
  /// add - Add a pass to the queue of passes to run.  This passes ownership of
 
52
  /// the Pass to the PassManager.  When the PassManager is destroyed, the pass
 
53
  /// will be destroyed as well, so there is no need to delete the pass.  This
 
54
  /// implies that all passes MUST be allocated with 'new'.
 
55
  void add(Pass *P);
 
56
 
 
57
  /// run - Execute all of the passes scheduled for execution.  Keep track of
 
58
  /// whether any of the passes modifies the module, and if so, return true.
 
59
  bool run(Module &M);
 
60
 
 
61
private:
 
62
  /// addImpl - Add a pass to the queue of passes to run, without
 
63
  /// checking whether to add a printer pass.
 
64
  void addImpl(Pass *P);
 
65
 
 
66
  /// PassManagerImpl_New is the actual class. PassManager is just the 
 
67
  /// wraper to publish simple pass manager interface
 
68
  PassManagerImpl *PM;
 
69
};
 
70
 
 
71
/// FunctionPassManager manages FunctionPasses and BasicBlockPassManagers.
 
72
class FunctionPassManager : public PassManagerBase {
 
73
public:
 
74
  /// FunctionPassManager ctor - This initializes the pass manager.  It needs,
 
75
  /// but does not take ownership of, the specified Module.
 
76
  explicit FunctionPassManager(Module *M);
 
77
  ~FunctionPassManager();
 
78
 
 
79
  /// add - Add a pass to the queue of passes to run.  This passes
 
80
  /// ownership of the Pass to the PassManager.  When the
 
81
  /// PassManager_X is destroyed, the pass will be destroyed as well, so
 
82
  /// there is no need to delete the pass. (TODO delete passes.)
 
83
  /// This implies that all passes MUST be allocated with 'new'.
 
84
  void add(Pass *P);
 
85
 
 
86
  /// run - Execute all of the passes scheduled for execution.  Keep
 
87
  /// track of whether any of the passes modifies the function, and if
 
88
  /// so, return true.
 
89
  ///
 
90
  bool run(Function &F);
 
91
  
 
92
  /// doInitialization - Run all of the initializers for the function passes.
 
93
  ///
 
94
  bool doInitialization();
 
95
  
 
96
  /// doFinalization - Run all of the finalizers for the function passes.
 
97
  ///
 
98
  bool doFinalization();
 
99
  
 
100
private:
 
101
  /// addImpl - Add a pass to the queue of passes to run, without
 
102
  /// checking whether to add a printer pass.
 
103
  void addImpl(Pass *P);
 
104
 
 
105
  FunctionPassManagerImpl *FPM;
 
106
  Module *M;
 
107
};
 
108
 
 
109
} // End llvm namespace
 
110
 
 
111
#endif