mirror-llvm-project/libc/hdr/elf_proxy.h
Michael Jones 9001032630
[libc] Move generated elf header to include (#211428)
The fact that `hdr/elf_proxy.h` was generated with headergen was causing
dependency issues. This shouldn't be necessary, and this PR moves it out
into `include` to avoid needing headergen for an overlay build.

Assisted-by: Automated tooling, human reviewed.
2026-07-31 16:37:32 -07:00

27 lines
746 B
C

//===----------------------------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
///
/// \file
/// Proxy header for elf.h.
///
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIBC_HDR_HDR_ELF_PROXY_H
#define LLVM_LIBC_HDR_HDR_ELF_PROXY_H
#ifdef LIBC_FULL_BUILD
#include "llvm-libc-proxy/elf_proxy.h"
#else // Overlay mode
#include <elf.h>
#endif // LIBC_FULL_BUILD
#endif // LLVM_LIBC_HDR_HDR_ELF_PROXY_H