~ubuntu-branches/ubuntu/feisty/clamav/feisty

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/include/llvm/Analysis/Lint.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-02-20 10:33:44 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20070220103344-zgcu2psnx9d98fpa
Tags: upstream-0.90
ImportĀ upstreamĀ versionĀ 0.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//===-- llvm/Analysis/Lint.h - LLVM IR Lint ---------------------*- 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 lint interfaces that can be used for some sanity checking
11
 
// of input to the system, and for checking that transformations
12
 
// haven't done something bad. In contrast to the Verifier, the Lint checker
13
 
// checks for undefined behavior or constructions with likely unintended
14
 
// behavior.
15
 
//
16
 
// To see what specifically is checked, look at Lint.cpp
17
 
//
18
 
//===----------------------------------------------------------------------===//
19
 
 
20
 
#ifndef LLVM_ANALYSIS_LINT_H
21
 
#define LLVM_ANALYSIS_LINT_H
22
 
 
23
 
#include <string>
24
 
 
25
 
namespace llvm {
26
 
 
27
 
class FunctionPass;
28
 
class Module;
29
 
class Function;
30
 
 
31
 
/// @brief Create a lint pass.
32
 
///
33
 
/// Check a module or function.
34
 
FunctionPass *createLintPass();
35
 
 
36
 
/// @brief Check a module.
37
 
///
38
 
/// This should only be used for debugging, because it plays games with
39
 
/// PassManagers and stuff.
40
 
void lintModule(
41
 
  const Module &M    ///< The module to be checked
42
 
);
43
 
 
44
 
// lintFunction - Check a function.
45
 
void lintFunction(
46
 
  const Function &F  ///< The function to be checked
47
 
);
48
 
 
49
 
} // End llvm namespace
50
 
 
51
 
#endif