summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObject.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-11-27 09:08:25 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-11-27 09:08:25 +0000
commit032f08b5560ab6260b3c643c690ca341bdf77583 (patch)
tree16c1058d7f7bb6aaf80f32798e4cb7cc18e8db57 /llvm/lib/Object/MachOObject.cpp
parent33dab2a6eeb9ba42b1cfcdd71ec64f4455be861f (diff)
downloadbcm5719-llvm-032f08b5560ab6260b3c643c690ca341bdf77583.tar.gz
bcm5719-llvm-032f08b5560ab6260b3c643c690ca341bdf77583.zip
Unbreak build for newer GCCs.
llvm-svn: 120205
Diffstat (limited to 'llvm/lib/Object/MachOObject.cpp')
-rw-r--r--llvm/lib/Object/MachOObject.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Object/MachOObject.cpp b/llvm/lib/Object/MachOObject.cpp
index 1e15f296e0f..94f6d7763a4 100644
--- a/llvm/lib/Object/MachOObject.cpp
+++ b/llvm/lib/Object/MachOObject.cpp
@@ -154,7 +154,7 @@ MachOObject::getLoadCommandInfo(unsigned Index) const {
}
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 @@ void MachOObject::ReadSegmentLoadCommand(const LoadCommandInfo &LCI,
}
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 @@ void MachOObject::ReadSegment64LoadCommand(const LoadCommandInfo &LCI,
}
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 @@ void MachOObject::ReadSymtabLoadCommand(const LoadCommandInfo &LCI,
}
template<>
-static void SwapStruct(macho::DysymtabLoadCommand &Value) {
+void SwapStruct(macho::DysymtabLoadCommand &Value) {
SwapValue(Value.Type);
SwapValue(Value.Size);
SwapValue(Value.LocalSymbolIndex);
OpenPOWER on IntegriCloud