Mercurial > hg > CbC > CbC_llvm
comparison lib/MC/MCAsmInfoELF.cpp @ 83:60c9769439b8 LLVM3.7
LLVM 3.7
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 18 Feb 2015 14:55:36 +0900 |
parents | e4204d083e25 |
children | afa8332a0e37 |
comparison
equal
deleted
inserted
replaced
78:af83660cff7b | 83:60c9769439b8 |
---|---|
11 // should take in general on ELF-based targets | 11 // should take in general on ELF-based targets |
12 // | 12 // |
13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
14 | 14 |
15 #include "llvm/MC/MCAsmInfoELF.h" | 15 #include "llvm/MC/MCAsmInfoELF.h" |
16 #include "llvm/MC/MCContext.h" | |
17 #include "llvm/MC/MCSectionELF.h" | |
18 #include "llvm/Support/ELF.h" | |
16 using namespace llvm; | 19 using namespace llvm; |
17 | 20 |
18 void MCAsmInfoELF::anchor() { } | 21 void MCAsmInfoELF::anchor() { } |
22 | |
23 const MCSection * | |
24 MCAsmInfoELF::getNonexecutableStackSection(MCContext &Ctx) const { | |
25 return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS, 0); | |
26 } | |
19 | 27 |
20 MCAsmInfoELF::MCAsmInfoELF() { | 28 MCAsmInfoELF::MCAsmInfoELF() { |
21 HasIdentDirective = true; | 29 HasIdentDirective = true; |
22 WeakRefDirective = "\t.weak\t"; | 30 WeakRefDirective = "\t.weak\t"; |
23 PrivateGlobalPrefix = ".L"; | 31 PrivateGlobalPrefix = ".L"; |
32 PrivateLabelPrefix = ".L"; | |
24 } | 33 } |