~ubuntu-branches/ubuntu/natty/clamav/natty-proposed

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/include/llvm/MC/MachObjectWriter.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-02 21:04:10 UTC
  • mfrom: (0.35.17 sid)
  • Revision ID: james.westby@ubuntu.com-20101202210410-ppgyckmylngsfa8o
Tags: 0.96.5+dfsg-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop initial signature definitions from clamav-base
  - Drop build-dep on electric-fence (in Universe)
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//===-- llvm/MC/MachObjectWriter.h - Mach-O File Writer ---------*- 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
#ifndef LLVM_MC_MACHOBJECTWRITER_H
 
11
#define LLVM_MC_MACHOBJECTWRITER_H
 
12
 
 
13
#include "llvm/MC/MCObjectWriter.h"
 
14
#include "llvm/Support/raw_ostream.h"
 
15
#include <cassert>
 
16
 
 
17
namespace llvm {
 
18
class MCAssembler;
 
19
class MCFragment;
 
20
class MCFixup;
 
21
class MCValue;
 
22
class raw_ostream;
 
23
 
 
24
class MachObjectWriter : public MCObjectWriter {
 
25
  void *Impl;
 
26
 
 
27
public:
 
28
  MachObjectWriter(raw_ostream &OS, bool Is64Bit, bool IsLittleEndian = true);
 
29
  virtual ~MachObjectWriter();
 
30
 
 
31
  virtual void ExecutePostLayoutBinding(MCAssembler &Asm);
 
32
 
 
33
  virtual void RecordRelocation(const MCAssembler &Asm,
 
34
                                const MCAsmLayout &Layout,
 
35
                                const MCFragment *Fragment,
 
36
                                const MCFixup &Fixup, MCValue Target,
 
37
                                uint64_t &FixedValue);
 
38
 
 
39
  virtual void WriteObject(const MCAssembler &Asm, const MCAsmLayout &Layout);
 
40
};
 
41
 
 
42
} // End llvm namespace
 
43
 
 
44
#endif