/*
 * Copyright (C) 2014 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef ART_DISASSEMBLER_DISASSEMBLER_MIPS64_H_
#define ART_DISASSEMBLER_DISASSEMBLER_MIPS64_H_

#include <vector>

#include "disassembler.h"

namespace art {
namespace mips64 {

class DisassemblerMips64 FINAL : public Disassembler {
 public:
  explicit DisassemblerMips64(DisassemblerOptions* options) : Disassembler(options) {}

  size_t Dump(std::ostream& os, const uint8_t* begin) OVERRIDE;
  void Dump(std::ostream& os, const uint8_t* begin, const uint8_t* end) OVERRIDE;

 private:
  DISALLOW_COPY_AND_ASSIGN(DisassemblerMips64);
};

}  // namespace mips64
}  // namespace art

#endif  // ART_DISASSEMBLER_DISASSEMBLER_MIPS64_H_
