[llvm-commits] [llvm] r120205 - /llvm/trunk/lib/Object/MachOObject.cpp

Benjamin Kramer benny.kra at googlemail.com
Sat Nov 27 01:08:25 PST 2010


Author: d0k
Date: Sat Nov 27 03:08:25 2010
New Revision: 120205

URL: http://llvm.org/viewvc/llvm-project?rev=120205&view=rev
Log:
Unbreak build for newer GCCs.

Modified:
    llvm/trunk/lib/Object/MachOObject.cpp

Modified: llvm/trunk/lib/Object/MachOObject.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/MachOObject.cpp?rev=120205&r1=120204&r2=120205&view=diff
==============================================================================
--- llvm/trunk/lib/Object/MachOObject.cpp (original)
+++ llvm/trunk/lib/Object/MachOObject.cpp Sat Nov 27 03:08:25 2010
@@ -154,7 +154,7 @@
 }
 
 template<>
-static void SwapStruct(macho::SegmentLoadCommand &Value) {
+void SwapStruct(macho::SegmentLoadCommand &Value) {
   SwapValue(Value.Type);
   SwapValue(Value.Size);
   SwapValue(Value.VMAddress);
@@ -172,7 +172,7 @@
 }
 
 template<>
-static void SwapStruct(macho::Segment64LoadCommand &Value) {
+void SwapStruct(macho::Segment64LoadCommand &Value) {
   SwapValue(Value.Type);
   SwapValue(Value.Size);
   SwapValue(Value.VMAddress);
@@ -190,7 +190,7 @@
 }
 
 template<>
-static void SwapStruct(macho::SymtabLoadCommand &Value) {
+void SwapStruct(macho::SymtabLoadCommand &Value) {
   SwapValue(Value.Type);
   SwapValue(Value.Size);
   SwapValue(Value.SymbolTableOffset);
@@ -204,7 +204,7 @@
 }
 
 template<>
-static void SwapStruct(macho::DysymtabLoadCommand &Value) {
+void SwapStruct(macho::DysymtabLoadCommand &Value) {
   SwapValue(Value.Type);
   SwapValue(Value.Size);
   SwapValue(Value.LocalSymbolIndex);





More information about the llvm-commits mailing list