diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2017-07-19 22:27:28 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2017-07-19 22:27:28 +0000 |
commit | c398e67fedaf2d0bdd7e1ad39e52e5200cecd577 (patch) | |
tree | fa77355e93d01080ffd34cc23a8d7c39c7e584b4 /llvm/tools/obj2yaml/obj2yaml.h | |
parent | 967d4aa7a0a1da8b5a18a0a9a65af1b79e205041 (diff) | |
download | bcm5719-llvm-c398e67fedaf2d0bdd7e1ad39e52e5200cecd577.tar.gz bcm5719-llvm-c398e67fedaf2d0bdd7e1ad39e52e5200cecd577.zip |
Use delegation instead of inheritance.
This changes DwarfContext to delegate to DwarfObject instead of having
pure virtual methods.
With this DwarfContextInMemory is replaced with an implementation of
DwarfObject that is local to a .cpp file.
llvm-svn: 308543
Diffstat (limited to 'llvm/tools/obj2yaml/obj2yaml.h')
-rw-r--r-- | llvm/tools/obj2yaml/obj2yaml.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/obj2yaml/obj2yaml.h b/llvm/tools/obj2yaml/obj2yaml.h index 69c753296ef..3e96659462b 100644 --- a/llvm/tools/obj2yaml/obj2yaml.h +++ b/llvm/tools/obj2yaml/obj2yaml.h @@ -29,13 +29,12 @@ std::error_code wasm2yaml(llvm::raw_ostream &Out, // Forward decls for dwarf2yaml namespace llvm { -class DWARFContextInMemory; +class DWARFContext; namespace DWARFYAML { struct Data; } } -std::error_code dwarf2yaml(llvm::DWARFContextInMemory &DCtx, - llvm::DWARFYAML::Data &Y); +std::error_code dwarf2yaml(llvm::DWARFContext &DCtx, llvm::DWARFYAML::Data &Y); #endif |