• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "components/zucchini/disassembler_no_op.h"
6 
7 namespace zucchini {
8 
9 // |num_equivalence_iterations_| = 1 since no pointers are present.
DisassemblerNoOp()10 DisassemblerNoOp::DisassemblerNoOp() : Disassembler(1) {}
11 
12 DisassemblerNoOp::~DisassemblerNoOp() = default;
13 
GetExeType() const14 ExecutableType DisassemblerNoOp::GetExeType() const {
15   return kExeTypeNoOp;
16 }
17 
GetExeTypeString() const18 std::string DisassemblerNoOp::GetExeTypeString() const {
19   return "(Unknown)";
20 }
21 
MakeReferenceGroups() const22 std::vector<ReferenceGroup> DisassemblerNoOp::MakeReferenceGroups() const {
23   return std::vector<ReferenceGroup>();
24 }
25 
Parse(ConstBufferView image)26 bool DisassemblerNoOp::Parse(ConstBufferView image) {
27   image_ = image;
28   return true;
29 }
30 
31 }  // namespace zucchini
32