summaryrefslogtreecommitdiff
path: root/chromium/third_party/protobuf/patches/0010-uninline-generated-code.patch
blob: ae8aeada1dfacb7e5b1c84a73991491fbc1baa1d (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/google/protobuf/compiler/cpp/cpp_message.cc
+++ b/src/google/protobuf/compiler/cpp/cpp_message.cc
@@ -1216,7 +1216,7 @@ void MessageGenerator::GenerateClassDefinition(io::Printer* printer) {
 
   if (SupportsArenas(descriptor_)) {
     format(
-        "inline void Swap($classname$* other) {\n"
+        "PROTOBUF_NOINLINE void Swap($classname$* other) {\n"
         "  if (other == this) return;\n"
         "  if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {\n"
         "    InternalSwap(other);\n"