Chris Lattner | 621c44d | 2009-08-22 20:48:53 +0000 | [diff] [blame] | 1 | //===-- SystemZMCAsmInfo.cpp - SystemZ asm properties ---------------------===// |
Anton Korobeynikov | 32b7d5b | 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 | 621c44d | 2009-08-22 20:48:53 +0000 | [diff] [blame] | 10 | // This file contains the declarations of the SystemZMCAsmInfo properties. |
Anton Korobeynikov | 32b7d5b | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
Chris Lattner | 621c44d | 2009-08-22 20:48:53 +0000 | [diff] [blame] | 14 | #include "SystemZMCAsmInfo.h" |
Chris Lattner | 2dc6ddd | 2010-01-23 07:21:06 +0000 | [diff] [blame^] | 15 | #include "llvm/MC/MCSectionELF.h" |
Anton Korobeynikov | 32b7d5b | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 16 | using namespace llvm; |
| 17 | |
Chris Lattner | 50f82ef | 2010-01-20 06:34:14 +0000 | [diff] [blame] | 18 | SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, const StringRef &TT) { |
Anton Korobeynikov | fafa2de | 2009-07-16 14:04:22 +0000 | [diff] [blame] | 19 | AlignmentIsInBytes = true; |
| 20 | |
Anton Korobeynikov | fafa2de | 2009-07-16 14:04:22 +0000 | [diff] [blame] | 21 | PrivateGlobalPrefix = ".L"; |
| 22 | WeakRefDirective = "\t.weak\t"; |
| 23 | SetDirective = "\t.set\t"; |
| 24 | PCSymbol = "."; |
Chris Lattner | 2dc6ddd | 2010-01-23 07:21:06 +0000 | [diff] [blame^] | 25 | } |
Anton Korobeynikov | fafa2de | 2009-07-16 14:04:22 +0000 | [diff] [blame] | 26 | |
Chris Lattner | 2dc6ddd | 2010-01-23 07:21:06 +0000 | [diff] [blame^] | 27 | MCSection *SystemZMCAsmInfo::getNonexecutableStackSection(MCContext &Ctx) const{ |
| 28 | return MCSectionELF::Create(".note.GNU-stack", MCSectionELF::SHT_PROGBITS, |
| 29 | 0, SectionKind::getMetadata(), false, Ctx); |
Anton Korobeynikov | 32b7d5b | 2009-07-16 13:27:25 +0000 | [diff] [blame] | 30 | } |