clang 20.0.0 (based on r547379) from build 12806354. Bug: http://b/379133546 Test: N/A Change-Id: I2eb8938af55d809de674be63cb30cf27e801862b Upstream-Commit: ad834e67b1105d15ef907f6255d4c96e8e733f57
47 lines
1.5 KiB
C++
47 lines
1.5 KiB
C++
/*===-- CodeGenData.inc ----------------------------------------*- 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
|
|
|*
|
|
\*===----------------------------------------------------------------------===*/
|
|
/*
|
|
* This is the main file that defines all the data structure, signature,
|
|
* constant literals that are shared across compiler, host tools (reader/writer)
|
|
* to support codegen data.
|
|
*
|
|
\*===----------------------------------------------------------------------===*/
|
|
|
|
/* Helper macros. */
|
|
#define CG_DATA_SIMPLE_QUOTE(x) #x
|
|
#define CG_DATA_QUOTE(x) CG_DATA_SIMPLE_QUOTE(x)
|
|
|
|
#ifdef CG_DATA_SECT_ENTRY
|
|
#define CG_DATA_DEFINED
|
|
CG_DATA_SECT_ENTRY(CG_outline, CG_DATA_QUOTE(CG_DATA_OUTLINE_COMMON),
|
|
CG_DATA_OUTLINE_COFF, "__DATA,")
|
|
|
|
#undef CG_DATA_SECT_ENTRY
|
|
#endif
|
|
|
|
/* section name strings common to all targets other
|
|
than WIN32 */
|
|
#define CG_DATA_OUTLINE_COMMON __llvm_outline
|
|
/* Since cg data sections are not allocated, we don't need to
|
|
* access them at runtime.
|
|
*/
|
|
#define CG_DATA_OUTLINE_COFF ".loutline"
|
|
|
|
#ifdef _WIN32
|
|
/* Runtime section names and name strings. */
|
|
#define CG_DATA_SECT_NAME CG_DATA_OUTLINE_COFF
|
|
|
|
#else
|
|
/* Runtime section names and name strings. */
|
|
#define CG_DATA_SECT_NAME CG_DATA_QUOTE(CG_DATA_OUTLINE_COMMON)
|
|
|
|
#endif
|
|
|
|
/* Indexed codegen data format version (start from 1). */
|
|
#define CG_DATA_INDEX_VERSION 1
|