From: Chris Lattner Date: Sun, 2 Aug 2009 04:13:22 +0000 (+0000) Subject: remove the x86/ppc impls of getEHGlobalPrefix, which is already dead. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=83f08a2efdbe18e1eba866a25aa7e37c555de4c1;p=oota-llvm.git remove the x86/ppc impls of getEHGlobalPrefix, which is already dead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77861 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCTargetAsmInfo.cpp b/lib/Target/PowerPC/PPCTargetAsmInfo.cpp index 2e66cb80646..6322a2e68fd 100644 --- a/lib/Target/PowerPC/PPCTargetAsmInfo.cpp +++ b/lib/Target/PowerPC/PPCTargetAsmInfo.cpp @@ -32,13 +32,6 @@ PPCDarwinTargetAsmInfo::PPCDarwinTargetAsmInfo(const PPCTargetMachine &TM) : SupportsWeakOmittedEHFrame = false; } -const char *PPCDarwinTargetAsmInfo::getEHGlobalPrefix() const { - const PPCSubtarget* Subtarget = &TM.getSubtarget(); - if (Subtarget->getDarwinVers() > 9) - return PrivateGlobalPrefix; - return ""; -} - PPCLinuxTargetAsmInfo::PPCLinuxTargetAsmInfo(const PPCTargetMachine &TM) : PPCTargetAsmInfo(TM) { CommentString = "#"; diff --git a/lib/Target/PowerPC/PPCTargetAsmInfo.h b/lib/Target/PowerPC/PPCTargetAsmInfo.h index eb537b9d417..79dabf4f632 100644 --- a/lib/Target/PowerPC/PPCTargetAsmInfo.h +++ b/lib/Target/PowerPC/PPCTargetAsmInfo.h @@ -46,7 +46,6 @@ namespace llvm { struct PPCDarwinTargetAsmInfo : public PPCTargetAsmInfo { explicit PPCDarwinTargetAsmInfo(const PPCTargetMachine &TM); - virtual const char *getEHGlobalPrefix() const; }; struct PPCLinuxTargetAsmInfo : public PPCTargetAsmInfo { diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp index db9cf905c4f..07350718f1a 100644 --- a/lib/Target/X86/X86TargetAsmInfo.cpp +++ b/lib/Target/X86/X86TargetAsmInfo.cpp @@ -86,14 +86,6 @@ X86DarwinTargetAsmInfo::X86DarwinTargetAsmInfo(const X86TargetMachine &TM): ".section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support"; } -const char * -X86DarwinTargetAsmInfo::getEHGlobalPrefix() const { - const X86Subtarget* Subtarget = &TM.getSubtarget(); - if (Subtarget->getDarwinVers() > 9) - return PrivateGlobalPrefix; - return ""; -} - X86ELFTargetAsmInfo::X86ELFTargetAsmInfo(const X86TargetMachine &TM) : X86TargetAsmInfo(TM) { diff --git a/lib/Target/X86/X86TargetAsmInfo.h b/lib/Target/X86/X86TargetAsmInfo.h index f7113b3e5ed..f0b23ccadd4 100644 --- a/lib/Target/X86/X86TargetAsmInfo.h +++ b/lib/Target/X86/X86TargetAsmInfo.h @@ -37,7 +37,6 @@ namespace llvm { struct X86DarwinTargetAsmInfo : public X86TargetAsmInfo { explicit X86DarwinTargetAsmInfo(const X86TargetMachine &TM); - virtual const char *getEHGlobalPrefix() const; }; struct X86ELFTargetAsmInfo : public X86TargetAsmInfo {