mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
The rational for this change is that LLVMBuild cannot express conditional dependencies. Therefore, when we start optionally using GlobalISel library for say AArch64, without that change, all the tools that use the AArch64 library would need to explicitly link with GlobalISel when we ask for it. This does not scale. Instead, we will set the dependencies between the target and GlobalISel and if we did not ask to build GlobalISel, the library will just be empty. Thanks to Chris Bieneman and Mehdi Animi for the idea. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260566 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
752 B
C++
20 lines
752 B
C++
//===-- llvm/CodeGen/GlobalISel/EmptyFile.cpp ------ EmptyFile ---*- C++ -*-==//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
/// \file
|
|
/// The purpose of this file is to please cmake by not creating an
|
|
/// empty library when we do not build GlobalISel.
|
|
/// \todo This file should be removed when GlobalISel is not optional anymore.
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Anonymous namespace so that we do not step on anyone's toes.
|
|
namespace {
|
|
__attribute__ ((unused)) void foo(void) {
|
|
}
|
|
}
|