blob: 8cb33a3179cd8018a80e7f2a389a55bf7664892e [file] [log] [blame]
Matt Arsenault06a711d2014-09-30 01:05:27 +00001//===-- MCTargetDesc/AMDGPUMCAsmInfo.h - AMDGPU MCAsm Interface -*- C++ -*-===//
Tom Stellard75aadc22012-12-11 21:25:42 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10/// \file
11//
12//===----------------------------------------------------------------------===//
13
Matt Arsenault6b6a2c32016-03-11 08:00:27 +000014#ifndef LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUMCASMINFO_H
15#define LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUMCASMINFO_H
Tom Stellard75aadc22012-12-11 21:25:42 +000016
Tom Stellard022802a2014-10-07 21:09:23 +000017#include "llvm/MC/MCAsmInfoELF.h"
Tom Stellard75aadc22012-12-11 21:25:42 +000018namespace llvm {
19
Daniel Sanders50f17232015-09-15 16:17:27 +000020class Triple;
Tom Stellard75aadc22012-12-11 21:25:42 +000021
Tom Stellard022802a2014-10-07 21:09:23 +000022// If you need to create another MCAsmInfo class, which inherits from MCAsmInfo,
23// you will need to make sure your new class sets PrivateGlobalPrefix to
Nick Lewyckyc3890d22015-07-29 22:32:47 +000024// a prefix that won't appear in a function name. The default value
Tom Stellard022802a2014-10-07 21:09:23 +000025// for PrivateGlobalPrefix is 'L', so it will consider any function starting
26// with 'L' as a local symbol.
27class AMDGPUMCAsmInfo : public MCAsmInfoELF {
Tom Stellard75aadc22012-12-11 21:25:42 +000028public:
Daniel Sanders50f17232015-09-15 16:17:27 +000029 explicit AMDGPUMCAsmInfo(const Triple &TT);
Tom Stellarde135ffd2015-09-25 21:41:28 +000030 bool shouldOmitSectionDirective(StringRef SectionName) const override;
Tom Stellard75aadc22012-12-11 21:25:42 +000031};
32} // namespace llvm
Benjamin Kramera7c40ef2014-08-13 16:26:38 +000033#endif