Chris Lattner | af76e59 | 2009-08-22 20:48:53 +0000 | [diff] [blame] | 1 | //===-- SystemZMCAsmInfo.cpp - SystemZ asm properties ---------------------===// |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +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 | // |
Chris Lattner | af76e59 | 2009-08-22 20:48:53 +0000 | [diff] [blame] | 10 | // This file contains the declarations of the SystemZMCAsmInfo properties. |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
Chris Lattner | af76e59 | 2009-08-22 20:48:53 +0000 | [diff] [blame] | 14 | #include "SystemZMCAsmInfo.h" |
Chris Lattner | 74aae47 | 2010-04-08 21:26:26 +0000 | [diff] [blame] | 15 | #include "llvm/MC/MCContext.h" |
Chris Lattner | f9f93e4 | 2010-01-23 07:21:06 +0000 | [diff] [blame] | 16 | #include "llvm/MC/MCSectionELF.h" |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 17 | using namespace llvm; |
| 18 | |
Benjamin Kramer | 38e5989 | 2010-07-14 22:38:02 +0000 | [diff] [blame] | 19 | SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, StringRef TT) { |
Anton Korobeynikov | 70f717f | 2009-07-16 14:04:22 +0000 | [diff] [blame] | 20 | PrivateGlobalPrefix = ".L"; |
| 21 | WeakRefDirective = "\t.weak\t"; |
Anton Korobeynikov | 70f717f | 2009-07-16 14:04:22 +0000 | [diff] [blame] | 22 | PCSymbol = "."; |
Chris Lattner | f9f93e4 | 2010-01-23 07:21:06 +0000 | [diff] [blame] | 23 | } |
Anton Korobeynikov | 70f717f | 2009-07-16 14:04:22 +0000 | [diff] [blame] | 24 | |
Chris Lattner | 74aae47 | 2010-04-08 21:26:26 +0000 | [diff] [blame] | 25 | const MCSection *SystemZMCAsmInfo:: |
| 26 | getNonexecutableStackSection(MCContext &Ctx) const{ |
| 27 | return Ctx.getELFSection(".note.GNU-stack", MCSectionELF::SHT_PROGBITS, |
Rafael Espindola | 3f2d13c | 2010-11-11 03:40:25 +0000 | [diff] [blame] | 28 | 0, SectionKind::getMetadata()); |
Anton Korobeynikov | 4403b93 | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 29 | } |