mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-05 11:17:53 +00:00
Revert "Add AllTargetsBindings sublibrary" as it breaks cmake build on (atleast) windows and darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -75,32 +75,57 @@ typedef struct LLVMStructLayout *LLVMStructLayoutRef;
|
|||||||
/** LLVMInitializeAllTargetInfos - The main program should call this function if
|
/** LLVMInitializeAllTargetInfos - The main program should call this function if
|
||||||
it wants access to all available targets that LLVM is configured to
|
it wants access to all available targets that LLVM is configured to
|
||||||
support. */
|
support. */
|
||||||
void LLVMInitializeAllTargetInfos(void);
|
static inline void LLVMInitializeAllTargetInfos(void) {
|
||||||
|
#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
|
||||||
|
#include "llvm/Config/Targets.def"
|
||||||
|
#undef LLVM_TARGET /* Explicit undef to make SWIG happier */
|
||||||
|
}
|
||||||
|
|
||||||
/** LLVMInitializeAllTargets - The main program should call this function if it
|
/** LLVMInitializeAllTargets - The main program should call this function if it
|
||||||
wants to link in all available targets that LLVM is configured to
|
wants to link in all available targets that LLVM is configured to
|
||||||
support. */
|
support. */
|
||||||
void LLVMInitializeAllTargets(void);
|
static inline void LLVMInitializeAllTargets(void) {
|
||||||
|
#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##Target();
|
||||||
|
#include "llvm/Config/Targets.def"
|
||||||
|
#undef LLVM_TARGET /* Explicit undef to make SWIG happier */
|
||||||
|
}
|
||||||
|
|
||||||
/** LLVMInitializeAllTargetMCs - The main program should call this function if
|
/** LLVMInitializeAllTargetMCs - The main program should call this function if
|
||||||
it wants access to all available target MC that LLVM is configured to
|
it wants access to all available target MC that LLVM is configured to
|
||||||
support. */
|
support. */
|
||||||
void LLVMInitializeAllTargetMCs(void);
|
static inline void LLVMInitializeAllTargetMCs(void) {
|
||||||
|
#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetMC();
|
||||||
|
#include "llvm/Config/Targets.def"
|
||||||
|
#undef LLVM_TARGET /* Explicit undef to make SWIG happier */
|
||||||
|
}
|
||||||
|
|
||||||
/** LLVMInitializeAllAsmPrinters - The main program should call this function if
|
/** LLVMInitializeAllAsmPrinters - The main program should call this function if
|
||||||
it wants all asm printers that LLVM is configured to support, to make them
|
it wants all asm printers that LLVM is configured to support, to make them
|
||||||
available via the TargetRegistry. */
|
available via the TargetRegistry. */
|
||||||
void LLVMInitializeAllAsmPrinters(void);
|
static inline void LLVMInitializeAllAsmPrinters(void) {
|
||||||
|
#define LLVM_ASM_PRINTER(TargetName) LLVMInitialize##TargetName##AsmPrinter();
|
||||||
|
#include "llvm/Config/AsmPrinters.def"
|
||||||
|
#undef LLVM_ASM_PRINTER /* Explicit undef to make SWIG happier */
|
||||||
|
}
|
||||||
|
|
||||||
/** LLVMInitializeAllAsmParsers - The main program should call this function if
|
/** LLVMInitializeAllAsmParsers - The main program should call this function if
|
||||||
it wants all asm parsers that LLVM is configured to support, to make them
|
it wants all asm parsers that LLVM is configured to support, to make them
|
||||||
available via the TargetRegistry. */
|
available via the TargetRegistry. */
|
||||||
void LLVMInitializeAllAsmParsers(void);
|
static inline void LLVMInitializeAllAsmParsers(void) {
|
||||||
|
#define LLVM_ASM_PARSER(TargetName) LLVMInitialize##TargetName##AsmParser();
|
||||||
|
#include "llvm/Config/AsmParsers.def"
|
||||||
|
#undef LLVM_ASM_PARSER /* Explicit undef to make SWIG happier */
|
||||||
|
}
|
||||||
|
|
||||||
/** LLVMInitializeAllDisassemblers - The main program should call this function
|
/** LLVMInitializeAllDisassemblers - The main program should call this function
|
||||||
if it wants all disassemblers that LLVM is configured to support, to make
|
if it wants all disassemblers that LLVM is configured to support, to make
|
||||||
them available via the TargetRegistry. */
|
them available via the TargetRegistry. */
|
||||||
void LLVMInitializeAllDisassemblers(void);
|
static inline void LLVMInitializeAllDisassemblers(void) {
|
||||||
|
#define LLVM_DISASSEMBLER(TargetName) \
|
||||||
|
LLVMInitialize##TargetName##Disassembler();
|
||||||
|
#include "llvm/Config/Disassemblers.def"
|
||||||
|
#undef LLVM_DISASSEMBLER /* Explicit undef to make SWIG happier */
|
||||||
|
}
|
||||||
|
|
||||||
/** LLVMInitializeNativeTarget - The main program should call this function to
|
/** LLVMInitializeNativeTarget - The main program should call this function to
|
||||||
initialize the native target corresponding to the host. This is useful
|
initialize the native target corresponding to the host. This is useful
|
||||||
|
@@ -1,42 +0,0 @@
|
|||||||
//===-- AllTargetsBindings.cpp --------------------------------------------===//
|
|
||||||
//
|
|
||||||
// The LLVM Compiler Infrastructure
|
|
||||||
//
|
|
||||||
// This file is distributed under the University of Illinois Open Source
|
|
||||||
// License. See LICENSE.TXT for details.
|
|
||||||
//
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
//
|
|
||||||
// This file implements the llvm-c functions for initialization of
|
|
||||||
// different aspects of all configured targets.
|
|
||||||
//
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
|
|
||||||
#include "llvm-c/Target.h"
|
|
||||||
#include "llvm/Support/TargetSelect.h"
|
|
||||||
|
|
||||||
using namespace llvm;
|
|
||||||
|
|
||||||
void LLVMInitializeAllTargetInfos(void) {
|
|
||||||
InitializeAllTargetInfos();
|
|
||||||
}
|
|
||||||
|
|
||||||
void LLVMInitializeAllTargets(void) {
|
|
||||||
InitializeAllTargets();
|
|
||||||
}
|
|
||||||
|
|
||||||
void LLVMInitializeAllTargetMCs(void) {
|
|
||||||
InitializeAllTargetMCs();
|
|
||||||
}
|
|
||||||
|
|
||||||
void LLVMInitializeAllAsmPrinters(void) {
|
|
||||||
InitializeAllAsmPrinters();
|
|
||||||
}
|
|
||||||
|
|
||||||
void LLVMInitializeAllAsmParsers(void) {
|
|
||||||
InitializeAllAsmParsers();
|
|
||||||
}
|
|
||||||
|
|
||||||
void LLVMInitializeAllDisassemblers(void) {
|
|
||||||
InitializeAllDisassemblers();
|
|
||||||
}
|
|
@@ -1,3 +0,0 @@
|
|||||||
add_llvm_library(LLVMAllTargetsBindings
|
|
||||||
AllTargetsBindings.cpp
|
|
||||||
)
|
|
@@ -1,32 +0,0 @@
|
|||||||
;===- ./lib/Target/LLVMBuild.txt -------------------------------*- Conf -*--===;
|
|
||||||
;
|
|
||||||
; The LLVM Compiler Infrastructure
|
|
||||||
;
|
|
||||||
; This file is distributed under the University of Illinois Open Source
|
|
||||||
; License. See LICENSE.TXT for details.
|
|
||||||
;
|
|
||||||
;===------------------------------------------------------------------------===;
|
|
||||||
;
|
|
||||||
; This is an LLVMBuild description file for the components in this subdirectory.
|
|
||||||
;
|
|
||||||
; For more information on the LLVMBuild system, please see:
|
|
||||||
;
|
|
||||||
; http://llvm.org/docs/LLVMBuild.html
|
|
||||||
;
|
|
||||||
;===------------------------------------------------------------------------===;
|
|
||||||
|
|
||||||
; This is a special group whose required libraries are extended (by llvm-build)
|
|
||||||
; with every built target, which makes it easy for tools to include every
|
|
||||||
; target.
|
|
||||||
[component_0]
|
|
||||||
type = LibraryGroup
|
|
||||||
name = all-targets
|
|
||||||
parent = Libraries
|
|
||||||
|
|
||||||
; This is the actual library built in this directory.
|
|
||||||
; It just contains the llvm-c bindings LLVMInitializeAllTarget* functions
|
|
||||||
[component_1]
|
|
||||||
type = Library
|
|
||||||
name = AllTargetsBindings
|
|
||||||
parent = Libraries
|
|
||||||
add_to_library_groups = all-targets
|
|
@@ -1,14 +0,0 @@
|
|||||||
#===- lib/Target/AllTargetsBindings/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 = LLVMAllTargetsBindings
|
|
||||||
BUILD_ARCHIVE = 1
|
|
||||||
|
|
||||||
include $(LEVEL)/Makefile.common
|
|
@@ -14,5 +14,3 @@ foreach(t ${LLVM_TARGETS_TO_BUILD})
|
|||||||
message(STATUS "Targeting ${t}")
|
message(STATUS "Targeting ${t}")
|
||||||
add_subdirectory(${t})
|
add_subdirectory(${t})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
add_subdirectory("AllTargetsBindings")
|
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
;===------------------------------------------------------------------------===;
|
;===------------------------------------------------------------------------===;
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
subdirectories = AArch64 ARM CppBackend Hexagon MSP430 NVPTX Mips PowerPC R600 Sparc SystemZ X86 XCore AllTargetsBindings
|
subdirectories = AArch64 ARM CppBackend Hexagon MSP430 NVPTX Mips PowerPC R600 Sparc SystemZ X86 XCore
|
||||||
|
|
||||||
; This is a special group whose required libraries are extended (by llvm-build)
|
; This is a special group whose required libraries are extended (by llvm-build)
|
||||||
; with the best execution engine (the native JIT, if available, or the
|
; with the best execution engine (the native JIT, if available, or the
|
||||||
@@ -47,3 +47,10 @@ name = Target
|
|||||||
parent = Libraries
|
parent = Libraries
|
||||||
required_libraries = Core MC Support
|
required_libraries = Core MC Support
|
||||||
|
|
||||||
|
; This is a special group whose required libraries are extended (by llvm-build)
|
||||||
|
; with every built target, which makes it easy for tools to include every
|
||||||
|
; target.
|
||||||
|
[component_4]
|
||||||
|
type = LibraryGroup
|
||||||
|
name = all-targets
|
||||||
|
parent = Libraries
|
||||||
|
@@ -15,6 +15,6 @@ BUILD_ARCHIVE = 1
|
|||||||
# value for PARALLEL_DIRS which must be set before Makefile.rules is included
|
# value for PARALLEL_DIRS which must be set before Makefile.rules is included
|
||||||
include $(LEVEL)/Makefile.config
|
include $(LEVEL)/Makefile.config
|
||||||
|
|
||||||
PARALLEL_DIRS := $(TARGETS_TO_BUILD) AllTargetsBindings
|
PARALLEL_DIRS := $(TARGETS_TO_BUILD)
|
||||||
|
|
||||||
include $(LLVM_SRC_ROOT)/Makefile.rules
|
include $(LLVM_SRC_ROOT)/Makefile.rules
|
||||||
|
Reference in New Issue
Block a user