~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/include/llvm/Argument.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
//===-- llvm/Argument.h - Definition of the Argument class ------*- 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 declares the Argument class. 
 
11
//
 
12
//===----------------------------------------------------------------------===//
 
13
 
 
14
#ifndef LLVM_ARGUMENT_H
 
15
#define LLVM_ARGUMENT_H
 
16
 
 
17
#include "llvm/Value.h"
 
18
#include "llvm/Attributes.h"
 
19
#include "llvm/ADT/ilist_node.h"
 
20
#include "llvm/ADT/Twine.h"
 
21
 
 
22
namespace llvm {
 
23
 
 
24
template<typename ValueSubClass, typename ItemParentClass>
 
25
  class SymbolTableListTraits;
 
26
 
 
27
/// A class to represent an incoming formal argument to a Function. An argument
 
28
/// is a very simple Value. It is essentially a named (optional) type. When used
 
29
/// in the body of a function, it represents the value of the actual argument
 
30
/// the function was called with.
 
31
/// @brief LLVM Argument representation  
 
32
class Argument : public Value, public ilist_node<Argument> {
 
33
  Function *Parent;
 
34
 
 
35
  friend class SymbolTableListTraits<Argument, Function>;
 
36
  void setParent(Function *parent);
 
37
 
 
38
public:
 
39
  /// Argument ctor - If Function argument is specified, this argument is
 
40
  /// inserted at the end of the argument list for the function.
 
41
  ///
 
42
  explicit Argument(const Type *Ty, const Twine &Name = "", Function *F = 0);
 
43
 
 
44
  inline const Function *getParent() const { return Parent; }
 
45
  inline       Function *getParent()       { return Parent; }
 
46
 
 
47
  /// getArgNo - Return the index of this formal argument in its containing
 
48
  /// function.  For example in "void foo(int a, float b)" a is 0 and b is 1. 
 
49
  unsigned getArgNo() const;
 
50
  
 
51
  /// hasByValAttr - Return true if this argument has the byval attribute on it
 
52
  /// in its containing function.
 
53
  bool hasByValAttr() const;
 
54
 
 
55
  /// hasNestAttr - Return true if this argument has the nest attribute on
 
56
  /// it in its containing function.
 
57
  bool hasNestAttr() const;
 
58
 
 
59
  /// hasNoAliasAttr - Return true if this argument has the noalias attribute on
 
60
  /// it in its containing function.
 
61
  bool hasNoAliasAttr() const;
 
62
  
 
63
  /// hasNoCaptureAttr - Return true if this argument has the nocapture
 
64
  /// attribute on it in its containing function.
 
65
  bool hasNoCaptureAttr() const;
 
66
  
 
67
  /// hasSRetAttr - Return true if this argument has the sret attribute on it in
 
68
  /// its containing function.
 
69
  bool hasStructRetAttr() const;
 
70
 
 
71
  /// addAttr - Add a Attribute to an argument
 
72
  void addAttr(Attributes);
 
73
  
 
74
  /// removeAttr - Remove a Attribute from an argument
 
75
  void removeAttr(Attributes);
 
76
 
 
77
  /// classof - Methods for support type inquiry through isa, cast, and
 
78
  /// dyn_cast:
 
79
  ///
 
80
  static inline bool classof(const Argument *) { return true; }
 
81
  static inline bool classof(const Value *V) {
 
82
    return V->getValueID() == ArgumentVal;
 
83
  }
 
84
};
 
85
 
 
86
} // End llvm namespace
 
87
 
 
88
#endif