diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-22 22:50:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-22 22:50:29 +0000 |
commit | ef96b2b0c61799c4aea957bcd4d698b5c22e59c5 (patch) | |
tree | c7085f0a97f477125866cab22e06650febc1621c | |
parent | 38727b1e1ae9bf61cf8a8bee62d39aec164e396a (diff) | |
download | external_llvm-ef96b2b0c61799c4aea957bcd4d698b5c22e59c5.zip external_llvm-ef96b2b0c61799c4aea957bcd4d698b5c22e59c5.tar.gz external_llvm-ef96b2b0c61799c4aea957bcd4d698b5c22e59c5.tar.bz2 |
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
-rw-r--r-- | tools/llvm-mc/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tools/llvm-mc/Disassembler.cpp (renamed from tools/llvm-mc/HexDisassembler.cpp) | 6 | ||||
-rw-r--r-- | tools/llvm-mc/Disassembler.h (renamed from tools/llvm-mc/HexDisassembler.h) | 8 | ||||
-rw-r--r-- | tools/llvm-mc/llvm-mc.cpp | 4 |
4 files changed, 10 insertions, 10 deletions
diff --git a/tools/llvm-mc/CMakeLists.txt b/tools/llvm-mc/CMakeLists.txt index ffb7bc9..46c5c6b 100644 --- a/tools/llvm-mc/CMakeLists.txt +++ b/tools/llvm-mc/CMakeLists.txt @@ -4,5 +4,5 @@ add_llvm_tool(llvm-mc llvm-mc.cpp AsmLexer.cpp AsmParser.cpp - HexDisassembler.cpp + Disassembler.cpp ) diff --git a/tools/llvm-mc/HexDisassembler.cpp b/tools/llvm-mc/Disassembler.cpp index 530520b..5fde712 100644 --- a/tools/llvm-mc/HexDisassembler.cpp +++ b/tools/llvm-mc/Disassembler.cpp @@ -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)); diff --git a/tools/llvm-mc/HexDisassembler.h b/tools/llvm-mc/Disassembler.h index d197aea..78c2f85 100644 --- a/tools/llvm-mc/HexDisassembler.h +++ b/tools/llvm-mc/Disassembler.h @@ -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, diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp index 75cb2b8..30cdfba 100644 --- a/tools/llvm-mc/llvm-mc.cpp +++ b/tools/llvm-mc/llvm-mc.cpp @@ -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); } |