summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
index 62c20219134..4316abc6135 100644
--- a/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
+++ b/llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
@@ -508,6 +508,9 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
case GlobalValue::InternalLinkage:
SwitchSection(O, CurSection, ".data");
break;
+ case GlobalValue::GhostLinkage:
+ std::cerr << "Error: unmaterialized (GhostLinkage) function in asm!";
+ abort();
}
emitAlignment(Align);
OpenPOWER on IntegriCloud