forked from OSchip/llvm-project
parent
c92791193d
commit
900f2ce31c
|
@ -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)
|
|
@ -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
|
|
@ -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