mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Sketch structure for X86 disassembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89850 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e49a8e4db9
commit
5f9b9efa17
6
lib/Target/X86/Disassembler/CMakeLists.txt
Normal file
6
lib/Target/X86/Disassembler/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
|
||||
|
||||
add_llvm_library(LLVMX86Disassembler
|
||||
X86Disassembler.cpp
|
||||
)
|
||||
add_dependencies(LLVMX86Disassembler X86CodeGenTable_gen)
|
16
lib/Target/X86/Disassembler/Makefile
Normal file
16
lib/Target/X86/Disassembler/Makefile
Normal file
@ -0,0 +1,16 @@
|
||||
##===- lib/Target/X86/Disassembler/Makefile ----------------*- Makefile -*-===##
|
||||
#
|
||||
# The LLVM Compiler Infrastructure
|
||||
#
|
||||
# This file is distributed under the University of Illinois Open Source
|
||||
# License. See LICENSE.TXT for details.
|
||||
#
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
LEVEL = ../../../..
|
||||
LIBRARYNAME = LLVMX86Disassembler
|
||||
|
||||
# Hack: we need to include 'main' x86 target directory to grab private headers
|
||||
CPPFLAGS = -I$(PROJ_OBJ_DIR)/.. -I$(PROJ_SRC_DIR)/..
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
29
lib/Target/X86/Disassembler/X86Disassembler.cpp
Normal file
29
lib/Target/X86/Disassembler/X86Disassembler.cpp
Normal file
@ -0,0 +1,29 @@
|
||||
//===- X86Disassembler.cpp - Disassembler for x86 and x86_64 ----*- C++ -*-===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is distributed under the University of Illinois Open Source
|
||||
// License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/MC/MCDisassembler.h"
|
||||
#include "llvm/Target/TargetRegistry.h"
|
||||
#include "X86.h"
|
||||
using namespace llvm;
|
||||
|
||||
static const MCDisassembler *createX86_32Disassembler(const Target &T) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const MCDisassembler *createX86_64Disassembler(const Target &T) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern "C" void LLVMInitializeX86Disassembler() {
|
||||
// Register the disassembler.
|
||||
TargetRegistry::RegisterMCDisassembler(TheX86_32Target,
|
||||
createX86_32Disassembler);
|
||||
TargetRegistry::RegisterMCDisassembler(TheX86_64Target,
|
||||
createX86_64Disassembler);
|
||||
}
|
@ -18,6 +18,6 @@ BUILT_SOURCES = X86GenRegisterInfo.h.inc X86GenRegisterNames.inc \
|
||||
X86GenFastISel.inc \
|
||||
X86GenCallingConv.inc X86GenSubtarget.inc
|
||||
|
||||
DIRS = AsmPrinter AsmParser TargetInfo
|
||||
DIRS = AsmPrinter AsmParser Disassembler TargetInfo
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
Loading…
Reference in New Issue
Block a user