Handle GhostLinkage case for completeness (should not be seen by the asm writer)
authorMisha Brukman <brukman+llvm@gmail.com>
Fri, 19 Nov 2004 21:49:19 +0000 (21:49 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Fri, 19 Nov 2004 21:49:19 +0000 (21:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18015 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcAsmPrinter.cpp
lib/Target/SparcV8/SparcV8AsmPrinter.cpp

index 36137b1a1c12335fb55d9fe55b3940260cff6f64..30e09ee8fdcdc3c2b4eb7ecd815eb934153053a6 100644 (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";
index 36137b1a1c12335fb55d9fe55b3940260cff6f64..30e09ee8fdcdc3c2b4eb7ecd815eb934153053a6 100644 (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";