mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user