mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 05:29:23 +00:00
The main reason for this is that the MCAsmInfo class, which we were previously using as the base class, sets PrivateGlobalPrefix to "L", which causes all global functions that start with L to be treated as local symbols. MCAsmInfoELF sets PrivateGlobalPrefix to ".L", which is what we want, and it is probably a good idea to use this as the base class anyway, since we are emitting ELF binaries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219237 91177308-0d34-0410-b5e6-96231b3b80d8
34 lines
1.1 KiB
C++
34 lines
1.1 KiB
C++
//===-- MCTargetDesc/AMDGPUMCAsmInfo.h - AMDGPU MCAsm Interface -*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
/// \file
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIB_TARGET_R600_MCTARGETDESC_AMDGPUMCASMINFO_H
|
|
#define LLVM_LIB_TARGET_R600_MCTARGETDESC_AMDGPUMCASMINFO_H
|
|
|
|
#include "llvm/MC/MCAsmInfoELF.h"
|
|
namespace llvm {
|
|
|
|
class StringRef;
|
|
|
|
// If you need to create another MCAsmInfo class, which inherits from MCAsmInfo,
|
|
// you will need to make sure your new class sets PrivateGlobalPrefix to
|
|
// a prefix that won't appeary in a fuction name. The default value
|
|
// for PrivateGlobalPrefix is 'L', so it will consider any function starting
|
|
// with 'L' as a local symbol.
|
|
class AMDGPUMCAsmInfo : public MCAsmInfoELF {
|
|
public:
|
|
explicit AMDGPUMCAsmInfo(StringRef &TT);
|
|
const MCSection* getNonexecutableStackSection(MCContext &CTX) const override;
|
|
};
|
|
} // namespace llvm
|
|
#endif
|