Handle GhostLinkage case for completeness (should not be seen by the asm writer)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18015 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Misha Brukman 2004-11-19 21:49:19 +00:00
parent f6abe385b6
commit c11c44f55b
2 changed files with 6 additions and 0 deletions

View File

@ -618,6 +618,9 @@ bool V8Printer::doFinalization(Module &M) {
else
SwitchSection(O, CurSection, ".data");
break;
case GlobalValue::GhostLinkage:
std::cerr << "Should not have any unmaterialized functions!\n";
abort();
}
O << "\t.align " << Align << "\n";

View File

@ -618,6 +618,9 @@ bool V8Printer::doFinalization(Module &M) {
else
SwitchSection(O, CurSection, ".data");
break;
case GlobalValue::GhostLinkage:
std::cerr << "Should not have any unmaterialized functions!\n";
abort();
}
O << "\t.align " << Align << "\n";