Adding dllimport, dllexport and external weak linkage types.
[oota-llvm.git] / lib / Target / Sparc / SparcAsmPrinter.cpp
index 1e6efcbeaf288de5cfd46417ea7c42a340fe212f..f8efc9ee545653acfd3d2e2d7d9d4f1c2b0bcf66 100644 (file)
@@ -271,6 +271,14 @@ bool SparcAsmPrinter::doFinalization(Module &M) {
         case GlobalValue::GhostLinkage:
           std::cerr << "Should not have any unmaterialized functions!\n";
           abort();
+        case GlobalValue::DLLImportLinkage:
+          std::cerr << "DLLImport linkage is not supported by this target!\n";
+          abort();
+        case GlobalValue::DLLExportLinkage:
+          std::cerr << "DLLExport linkage is not supported by this target!\n";
+          abort();
+        default:
+          assert(0 && "Unknown linkage type!");          
         }
 
         O << "\t.align " << Align << "\n";