1 //===-- ObjDumper.cpp - Base dumper 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 /// \file 11 /// \brief This file implements ObjDumper. 12 /// 13 //===----------------------------------------------------------------------===// 14 15 #include "ObjDumper.h" 16 #include "Error.h" 17 #include "llvm/Object/ObjectFile.h" 18 #include "llvm/Support/ScopedPrinter.h" 19 #include "llvm/Support/raw_ostream.h" 20 21 namespace llvm { 22 ObjDumper(ScopedPrinter & Writer)23ObjDumper::ObjDumper(ScopedPrinter &Writer) : W(Writer) {} 24 ~ObjDumper()25ObjDumper::~ObjDumper() { 26 } 27 28 } // namespace llvm 29