1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

GhostLinkage not allowed in LLVM AsmWriter, either

llvm-svn: 17751
This commit is contained in:
Misha Brukman 2004-11-14 21:04:34 +00:00
parent 8c1b4a5b9d
commit 8d4e1d62dd

View File

@ -806,6 +806,9 @@ void AssemblyWriter::printGlobal(const GlobalVariable *GV) {
case GlobalValue::WeakLinkage: Out << "weak "; break;
case GlobalValue::AppendingLinkage: Out << "appending "; break;
case GlobalValue::ExternalLinkage: break;
case GlobalValue::GhostLinkage:
std::cerr << "GhostLinkage not allowed in AsmWriter!\n";
abort();
}
Out << (GV->isConstant() ? "constant " : "global ");
@ -887,6 +890,9 @@ void AssemblyWriter::printFunction(const Function *F) {
case GlobalValue::WeakLinkage: Out << "weak "; break;
case GlobalValue::AppendingLinkage: Out << "appending "; break;
case GlobalValue::ExternalLinkage: break;
case GlobalValue::GhostLinkage:
std::cerr << "GhostLinkage not allowed in AsmWriter!\n";
abort();
}
printType(F->getReturnType()) << ' ';