1 //===---- DarwinTargetAsmInfo.h - Darwin asm properties ---------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines target asm properties related what form asm statements
11 // should take in general on Darwin-based targets
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_DARWIN_TARGET_ASM_INFO_H
16 #define LLVM_DARWIN_TARGET_ASM_INFO_H
18 #include "llvm/Target/TargetAsmInfo.h"
19 #include "llvm/Target/TargetMachine.h"
25 struct DarwinTargetAsmInfo: public virtual TargetAsmInfo {
26 const Section* TextCoalSection;
27 const Section* ConstDataCoalSection;
28 const Section* ConstDataSection;
29 const Section* DataCoalSection;
31 explicit DarwinTargetAsmInfo(const TargetMachine &TM);
32 virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
33 virtual std::string UniqueSectionForGlobal(const GlobalValue* GV,
34 SectionKind::Kind kind) const;
35 const Section* MergeableConstSection(const GlobalVariable *GV) const;
36 const Section* MergeableStringSection(const GlobalVariable *GV) const;
38 const TargetMachine* DTM;
43 #endif // LLVM_DARWIN_TARGET_ASM_INFO_H