llvm.org GIT mirror llvm / 1454384
makeNameProper is now private! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93357 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
1 changed file(s) with 13 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
107107 std::string getMangledName(const GlobalValue *V, const char *Suffix = "",
108108 bool ForcePrivate = false);
109109
110 /// getNameWithPrefix - Fill OutName with the name of the appropriate prefix
111 /// and the specified global variable's name. If the global variable doesn't
112 /// have a name, this fills in a unique name for the global.
113 void getNameWithPrefix(SmallVectorImpl &OutName, const GlobalValue *GV,
114 bool isImplicitlyPrivate);
115
116 /// getNameWithPrefix - Fill OutName with the name of the appropriate prefix
117 /// and the specified name as the global variable name. GVName must not be
118 /// empty.
119 void getNameWithPrefix(SmallVectorImpl &OutName, const Twine &GVName,
120 ManglerPrefixTy PrefixTy = Mangler::Default);
121
122 private:
110123 /// makeNameProper - We don't want identifier names with ., space, or
111124 /// - in them, so we mangle these characters into the strings "d_",
112125 /// "s_", and "D_", respectively. This is a very simple mangling that
121134 const Twine &Name,
122135 ManglerPrefixTy PrefixTy = Mangler::Default);
123136
124 /// getNameWithPrefix - Fill OutName with the name of the appropriate prefix
125 /// and the specified global variable's name. If the global variable doesn't
126 /// have a name, this fills in a unique name for the global.
127 void getNameWithPrefix(SmallVectorImpl &OutName, const GlobalValue *GV,
128 bool isImplicitlyPrivate);
129
130 /// getNameWithPrefix - Fill OutName with the name of the appropriate prefix
131 /// and the specified name as the global variable name. GVName must not be
132 /// empty.
133 void getNameWithPrefix(SmallVectorImpl &OutName, const Twine &GVName,
134 ManglerPrefixTy PrefixTy = Mangler::Default);
135137 };
136138
137139 } // End llvm namespace