From d2691fdf189738fd6e9cc1463012ba07776899a2 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Sun, 14 Nov 2004 21:03:49 +0000 Subject: [PATCH] GhostLinkage should not reach asm printing stage git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17750 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86AsmPrinter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp index a57c2fe6799..32e8041eea0 100644 --- a/lib/Target/X86/X86AsmPrinter.cpp +++ b/lib/Target/X86/X86AsmPrinter.cpp @@ -144,6 +144,9 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) { else SwitchSection(O, CurSection, ".data"); break; + case GlobalValue::GhostLinkage: + std::cerr << "GhostLinkage cannot appear in X86AsmPrinter!\n"; + abort(); } emitAlignment(Align);