aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IRReader
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@redhat.com>2020-10-09 18:41:21 +0200
committerserge-sans-paille <sguelton@redhat.com>2020-11-13 10:35:24 +0100
commit9218ff50f93085d0a16a974db28ca8f14bc66f64 (patch)
tree00618a75171e9b483b20315faefaec17641200e4 /llvm/lib/IRReader
parentb498303066a63a203d24f739b2d2e0e56dca70d1 (diff)
downloadllvm-9218ff50f93085d0a16a974db28ca8f14bc66f64.zip
llvm-9218ff50f93085d0a16a974db28ca8f14bc66f64.tar.gz
llvm-9218ff50f93085d0a16a974db28ca8f14bc66f64.tar.bz2
llvmbuildectomy - replace llvm-build by plain cmake
No longer rely on an external tool to build the llvm component layout. Instead, leverage the existing `add_llvm_componentlibrary` cmake function and introduce `add_llvm_component_group` to accurately describe component behavior. These function store extra properties in the created targets. These properties are processed once all components are defined to resolve library dependencies and produce the header expected by llvm-config. Differential Revision: https://reviews.llvm.org/D90848
Diffstat (limited to 'llvm/lib/IRReader')
-rw-r--r--llvm/lib/IRReader/CMakeLists.txt6
-rw-r--r--llvm/lib/IRReader/LLVMBuild.txt21
2 files changed, 6 insertions, 21 deletions
diff --git a/llvm/lib/IRReader/CMakeLists.txt b/llvm/lib/IRReader/CMakeLists.txt
index b4ef187..256d65c 100644
--- a/llvm/lib/IRReader/CMakeLists.txt
+++ b/llvm/lib/IRReader/CMakeLists.txt
@@ -6,4 +6,10 @@ add_llvm_component_library(LLVMIRReader
DEPENDS
intrinsics_gen
+
+ LINK_COMPONENTS
+ AsmParser
+ BitReader
+ Core
+ Support
)
diff --git a/llvm/lib/IRReader/LLVMBuild.txt b/llvm/lib/IRReader/LLVMBuild.txt
deleted file mode 100644
index 1e5fc76..0000000
--- a/llvm/lib/IRReader/LLVMBuild.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-;===- ./lib/IRReader/LLVMBuild.txt -----------------------------*- Conf -*--===;
-;
-; Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-; See https://llvm.org/LICENSE.txt for license information.
-; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-;
-;===------------------------------------------------------------------------===;
-;
-; 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
-;
-;===------------------------------------------------------------------------===;
-
-[component_0]
-type = Library
-name = IRReader
-parent = Libraries
-required_libraries = AsmParser BitReader Core Support