Matt Arsenault | 06a711d | 2014-09-30 01:05:27 +0000 | [diff] [blame] | 1 | //===-- MCTargetDesc/AMDGPUMCAsmInfo.h - AMDGPU MCAsm Interface -*- C++ -*-===// |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 2 | // |
| 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 Arsenault | 6b6a2c3 | 2016-03-11 08:00:27 +0000 | [diff] [blame] | 14 | #ifndef LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUMCASMINFO_H |
| 15 | #define LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUMCASMINFO_H |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 16 | |
Tom Stellard | 022802a | 2014-10-07 21:09:23 +0000 | [diff] [blame] | 17 | #include "llvm/MC/MCAsmInfoELF.h" |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 18 | namespace llvm { |
| 19 | |
Daniel Sanders | 50f1723 | 2015-09-15 16:17:27 +0000 | [diff] [blame] | 20 | class Triple; |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 21 | |
Tom Stellard | 022802a | 2014-10-07 21:09:23 +0000 | [diff] [blame] | 22 | // 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 Lewycky | c3890d2 | 2015-07-29 22:32:47 +0000 | [diff] [blame] | 24 | // a prefix that won't appear in a function name. The default value |
Tom Stellard | 022802a | 2014-10-07 21:09:23 +0000 | [diff] [blame] | 25 | // for PrivateGlobalPrefix is 'L', so it will consider any function starting |
| 26 | // with 'L' as a local symbol. |
| 27 | class AMDGPUMCAsmInfo : public MCAsmInfoELF { |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 28 | public: |
Daniel Sanders | 50f1723 | 2015-09-15 16:17:27 +0000 | [diff] [blame] | 29 | explicit AMDGPUMCAsmInfo(const Triple &TT); |
Tom Stellard | e135ffd | 2015-09-25 21:41:28 +0000 | [diff] [blame] | 30 | bool shouldOmitSectionDirective(StringRef SectionName) const override; |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 31 | }; |
| 32 | } // namespace llvm |
Benjamin Kramer | a7c40ef | 2014-08-13 16:26:38 +0000 | [diff] [blame] | 33 | #endif |