2008-07-19 13:14:11 +00:00
|
|
|
//===---- ELFTargetAsmInfo.h - ELF asm properties ---------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file defines target asm properties related what form asm statements
|
|
|
|
// should take in general on ELF-based targets
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_ELF_TARGET_ASM_INFO_H
|
|
|
|
#define LLVM_ELF_TARGET_ASM_INFO_H
|
|
|
|
|
|
|
|
#include "llvm/Target/TargetAsmInfo.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class GlobalValue;
|
|
|
|
class GlobalVariable;
|
2008-08-07 09:50:34 +00:00
|
|
|
class Type;
|
2008-07-19 13:14:11 +00:00
|
|
|
|
2008-09-25 21:00:33 +00:00
|
|
|
struct ELFTargetAsmInfo: public TargetAsmInfo {
|
2008-07-19 13:14:11 +00:00
|
|
|
explicit ELFTargetAsmInfo(const TargetMachine &TM);
|
|
|
|
|
2008-08-08 17:56:50 +00:00
|
|
|
virtual const Section* SelectSectionForGlobal(const GlobalValue *GV) const;
|
2008-08-16 12:57:07 +00:00
|
|
|
virtual std::string printSectionFlags(unsigned flags) const;
|
2008-07-19 13:14:11 +00:00
|
|
|
const Section* MergeableConstSection(const GlobalVariable *GV) const;
|
2008-08-07 09:50:34 +00:00
|
|
|
inline const Section* MergeableConstSection(const Type *Ty) const;
|
2008-07-19 13:14:11 +00:00
|
|
|
const Section* MergeableStringSection(const GlobalVariable *GV) const;
|
2008-08-07 09:50:34 +00:00
|
|
|
virtual const Section*
|
|
|
|
SelectSectionForMachineConst(const Type *Ty) const;
|
2008-07-19 13:14:11 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif // LLVM_ELF_TARGET_ASM_INFO_H
|