aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/compiler/cpp/cpp_helpers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/google/protobuf/compiler/cpp/cpp_helpers.cc')
-rw-r--r--src/google/protobuf/compiler/cpp/cpp_helpers.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/google/protobuf/compiler/cpp/cpp_helpers.cc b/src/google/protobuf/compiler/cpp/cpp_helpers.cc
index e293b413..cd8364f5 100644
--- a/src/google/protobuf/compiler/cpp/cpp_helpers.cc
+++ b/src/google/protobuf/compiler/cpp/cpp_helpers.cc
@@ -360,6 +360,12 @@ string FilenameIdentifier(const string& filename) {
return result;
}
+
+string GlobalSymbolName(const string& filename, string prefix)
+{
+ return prefix + FilenameIdentifier(filename);
+}
+
// Return the name of the AddDescriptors() function for a given file.
string GlobalAddDescriptorsName(const string& filename)
{
@@ -378,10 +384,6 @@ string GlobalShutdownFileName(const string& filename)
return GlobalSymbolName(filename,"protobuf_ShutdownFile_");
}
-string GlobalSymbolName(const string& filename, string prefix)
-{
- return prefix + FilenameIdentifier(filename);
-}
// Return the qualified C++ name for a file level symbol.
string QualifiedFileLevelSymbol(const string& package, const string& name) {