rename HexDisassembler -> Disassembler, it works on any input

integer encoding (0123, 0b10101, 42, etc).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91934 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-12-22 22:50:29 +00:00
parent f444c06f91
commit a3dcfb1300
4 changed files with 10 additions and 10 deletions

View File

@ -4,5 +4,5 @@ add_llvm_tool(llvm-mc
llvm-mc.cpp
AsmLexer.cpp
AsmParser.cpp
HexDisassembler.cpp
Disassembler.cpp
)

View File

@ -1,4 +1,4 @@
//===- HexDisassembler.cpp - Disassembler for hex strings -----------------===//
//===- Disassembler.cpp - Disassembler for hex strings --------------------===//
//
// The LLVM Compiler Infrastructure
//
@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//
#include "HexDisassembler.h"
#include "Disassembler.h"
#include "llvm/ADT/OwningPtr.h"
#include "llvm/MC/MCAsmInfo.h"
@ -78,7 +78,7 @@ static bool PrintInst(const llvm::MCDisassembler &DisAsm,
return false;
}
int HexDisassembler::disassemble(const Target &T, const std::string &Triple,
int Disassembler::disassemble(const Target &T, const std::string &Triple,
MemoryBuffer &Buffer) {
// Set up disassembler.
llvm::OwningPtr<const llvm::MCAsmInfo> AsmInfo(T.createAsmInfo(Triple));

View File

@ -1,4 +1,4 @@
//===- HexDisassembler.h - Disassembler for hex strings -------------------===//
//===- Disassembler.h - Text File Disassembler ----------------------------===//
//
// The LLVM Compiler Infrastructure
//
@ -12,8 +12,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef HEXDISASSEMBLER_H
#define HEXDISASSEMBLER_H
#ifndef DISASSEMBLER_H
#define DISASSEMBLER_H
#include <string>
@ -22,7 +22,7 @@ namespace llvm {
class Target;
class MemoryBuffer;
class HexDisassembler {
class Disassembler {
public:
static int disassemble(const Target &target,
const std::string &tripleString,

View File

@ -32,7 +32,7 @@
#include "llvm/Target/TargetMachine.h" // FIXME.
#include "llvm/Target/TargetSelect.h"
#include "AsmParser.h"
#include "HexDisassembler.h"
#include "Disassembler.h"
using namespace llvm;
static cl::opt<std::string>
@ -310,7 +310,7 @@ static int DisassembleInput(const char *ProgName) {
return 1;
}
return HexDisassembler::disassemble(*TheTarget, TripleName, *Buffer);
return Disassembler::disassemble(*TheTarget, TripleName, *Buffer);
}