1 //===- IRObjectFile.h - LLVM IR object file implementation ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file declares the IRObjectFile template class.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_OBJECT_IR_OBJECT_FILE_H
15 #define LLVM_OBJECT_IR_OBJECT_FILE_H
17 #include "llvm/Object/SymbolicFile.h"
25 class IRObjectFile : public SymbolicFile {
27 OwningPtr<Mangler> Mang;
29 IRObjectFile(MemoryBuffer *Object, error_code &EC, LLVMContext &Context,
31 void moveSymbolNext(DataRefImpl &Symb) const LLVM_OVERRIDE;
32 error_code printSymbolName(raw_ostream &OS, DataRefImpl Symb) const
34 uint32_t getSymbolFlags(DataRefImpl Symb) const LLVM_OVERRIDE;
35 const GlobalValue &getSymbolGV(DataRefImpl Symb) const;
36 basic_symbol_iterator symbol_begin_impl() const LLVM_OVERRIDE;
37 basic_symbol_iterator symbol_end_impl() const LLVM_OVERRIDE;
39 static inline bool classof(const Binary *v) {