mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 04:16:07 +00:00

The current values for PrivateGlobalPrefix and PrivateLabelPrefix (@@ and @ respectively) are, in hindsight, poor choices for multiple reasons: First, there exist externally visible routines from the language environment that begin with @@. These functions are certainly not local/private by any means and they should not share a prefix with private globals. Secondly, both private globals and private labels should be handled the same way by GOFF, so it doesn't make much sense for them to have separate prefixes. GOFF remains the only file format where these are different and there is no reason for that to be the case
28 lines
858 B
C++
28 lines
858 B
C++
//===- MCAsmInfoGOFF.cpp - MCGOFFAsmInfo properties -----------------------===//
|
|
//
|
|
// 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
|
|
/// This file defines certain target specific asm properties for GOFF (z/OS)
|
|
/// based targets.
|
|
///
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/MC/MCAsmInfoGOFF.h"
|
|
|
|
using namespace llvm;
|
|
|
|
void MCAsmInfoGOFF::anchor() {}
|
|
|
|
MCAsmInfoGOFF::MCAsmInfoGOFF() {
|
|
Data64bitsDirective = "\t.quad\t";
|
|
HasDotTypeDotSizeDirective = false;
|
|
PrivateGlobalPrefix = "L#";
|
|
PrivateLabelPrefix = "L#";
|
|
ZeroDirective = "\t.space\t";
|
|
}
|