Use generic ELFTargetAsmInfo and DarwinTargetAsmInfo for X86 code

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53788 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov
2008-07-19 13:15:21 +00:00
parent 745e864eab
commit 18f6ed9c29
5 changed files with 32 additions and 274 deletions

View File

@@ -12,8 +12,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_ELF_TARGET_ASM_INFO_H
#define LLVM_ELF_TARGET_ASM_INFO_H
#ifndef LLVM_DARWIN_TARGET_ASM_INFO_H
#define LLVM_DARWIN_TARGET_ASM_INFO_H
#include "llvm/Target/TargetAsmInfo.h"
#include "llvm/Target/TargetMachine.h"
@@ -22,7 +22,7 @@ namespace llvm {
class GlobalValue;
class GlobalVariable;
class DarwinTargetAsmInfo: public TargetAsmInfo {
struct DarwinTargetAsmInfo: public virtual TargetAsmInfo {
const Section* TextCoalSection;
const Section* ConstDataCoalSection;
const Section* ConstDataSection;
@@ -35,9 +35,9 @@ namespace llvm {
const Section* MergeableConstSection(const GlobalVariable *GV) const;
const Section* MergeableStringSection(const GlobalVariable *GV) const;
protected:
const TargetMachine* ETM;
const TargetMachine* DTM;
};
}
#endif // LLVM_ELF_TARGET_ASM_INFO_H
#endif // LLVM_DARWIN_TARGET_ASM_INFO_H