[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp

Anton Korobeynikov asl at math.spbu.ru
Thu Sep 14 11:24:05 PDT 2006



Changes in directory llvm/tools/llvm2cpp:

CppWriter.cpp updated: 1.14 -> 1.15
---
Log message:

Adding dllimport, dllexport and external weak linkage types.
DLL* linkages got full (I hope) codegeneration support in C & both x86 
assembler backends.
External weak linkage added for future use, we don't provide any 
codegeneration, etc. support for it.


---
Diffs of the changes:  (+6 -0)

 CppWriter.cpp |    6 ++++++
 1 files changed, 6 insertions(+)


Index: llvm/tools/llvm2cpp/CppWriter.cpp
diff -u llvm/tools/llvm2cpp/CppWriter.cpp:1.14 llvm/tools/llvm2cpp/CppWriter.cpp:1.15
--- llvm/tools/llvm2cpp/CppWriter.cpp:1.14	Mon Aug 14 17:35:15 2006
+++ llvm/tools/llvm2cpp/CppWriter.cpp	Thu Sep 14 13:23:27 2006
@@ -284,6 +284,12 @@
       Out << "GlobalValue::AppendingLinkage"; break;
     case GlobalValue::ExternalLinkage: 
       Out << "GlobalValue::ExternalLinkage"; break;
+    case GlobalValue::DLLImportLinkage: 
+      Out << "GlobalValue::DllImportLinkage"; break;
+    case GlobalValue::DLLExportLinkage: 
+      Out << "GlobalValue::DllExportLinkage"; break;
+    case GlobalValue::ExternalWeakLinkage: 
+      Out << "GlobalValue::ExternalWeakLinkage"; break;
     case GlobalValue::GhostLinkage:
       Out << "GlobalValue::GhostLinkage"; break;
   }






More information about the llvm-commits mailing list