diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-27 16:45:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-27 16:45:59 +0000 |
commit | 40412e7e909150af56a95c827e7de245ba52054a (patch) | |
tree | da949103edb89b7d255f871f42218d8c389b49b1 /include | |
parent | afcb70bc734dab26918c7ede8e4c96818dddf056 (diff) | |
download | external_llvm-40412e7e909150af56a95c827e7de245ba52054a.zip external_llvm-40412e7e909150af56a95c827e7de245ba52054a.tar.gz external_llvm-40412e7e909150af56a95c827e7de245ba52054a.tar.bz2 |
make COFF work like ELF and macho, by splitting out into its own
header even though there is only one COFF target.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77204 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/COFFTargetAsmInfo.h | 30 | ||||
-rw-r--r-- | include/llvm/Target/ELFTargetAsmInfo.h | 1 |
2 files changed, 30 insertions, 1 deletions
diff --git a/include/llvm/Target/COFFTargetAsmInfo.h b/include/llvm/Target/COFFTargetAsmInfo.h new file mode 100644 index 0000000..45eef01 --- /dev/null +++ b/include/llvm/Target/COFFTargetAsmInfo.h @@ -0,0 +1,30 @@ +//===-- COFFTargetAsmInfo.h - COFF asm properties ---------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_COFF_TARGET_ASM_INFO_H +#define LLVM_COFF_TARGET_ASM_INFO_H + +#include "llvm/Target/TargetAsmInfo.h" + +namespace llvm { + class COFFTargetAsmInfo : public TargetAsmInfo { + protected: + explicit COFFTargetAsmInfo(const TargetMachine &TM); + public: + + virtual const char * + getSectionPrefixForUniqueGlobal(SectionKind kind) const; + + virtual void getSectionFlagsAsString(SectionKind Kind, + SmallVectorImpl<char> &Str) const; + }; +} + + +#endif // LLVM_ELF_TARGET_ASM_INFO_H diff --git a/include/llvm/Target/ELFTargetAsmInfo.h b/include/llvm/Target/ELFTargetAsmInfo.h index 1f7a21e..a0cbc8e 100644 --- a/include/llvm/Target/ELFTargetAsmInfo.h +++ b/include/llvm/Target/ELFTargetAsmInfo.h @@ -18,7 +18,6 @@ #include "llvm/Target/TargetAsmInfo.h" namespace llvm { - class GlobalValue; struct ELFTargetAsmInfo : public TargetAsmInfo { ELFTargetAsmInfo(const TargetMachine &TM); |