Fix an oops in x86 sibcall optimization. If the ByVal callee argument is itself passe...
[oota-llvm.git] / lib / Target / Mangler.cpp
index 826f950c4a45f4e019b8813cc06f11fc7696c353..ef6defc58dc762a26475371c3c2f27def77ce5a0 100644 (file)
@@ -58,8 +58,8 @@ static bool NameNeedsEscaping(StringRef Str, const MCAsmInfo &MAI) {
 
 /// appendMangledName - Add the specified string in mangled form if it uses
 /// any unusual characters.
-void Mangler::appendMangledName(SmallVectorImpl<char> &OutName, StringRef Str,
-                                const MCAsmInfo *MAI) {
+static void appendMangledName(SmallVectorImpl<char> &OutName, StringRef Str,
+                              const MCAsmInfo *MAI) {
   // The first character is not allowed to be a number unless the target
   // explicitly allows it.
   if ((MAI == 0 || !MAI->doesAllowNameToStartWithDigit()) &&