summaryrefslogtreecommitdiff
path: root/lib/Object
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
commit3946e3b4764ab0146693aad53687d33b7ae6bb78 (patch)
tree6a4bdf8d2627284f1d757754d2d2a82f106cc7cc /lib/Object
parentf879f14cef93fe51ee8c180be7acf70294807b8f (diff)
downloadllvm-3946e3b4764ab0146693aad53687d33b7ae6bb78.tar.gz
llvm-3946e3b4764ab0146693aad53687d33b7ae6bb78.tar.bz2
llvm-3946e3b4764ab0146693aad53687d33b7ae6bb78.tar.xz
Unbreak build for newer GCCs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r--lib/Object/MachOObject.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Object/MachOObject.cpp b/lib/Object/MachOObject.cpp
index 1e15f296e0..94f6d7763a 100644
--- a/lib/Object/MachOObject.cpp
+++ b/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);