]> granicus.if.org Git - llvm/commitdiff
Bug fix remove another illegal char from prof symbol name
authorXinliang David Li <davidxl@google.com>
Fri, 10 Jun 2016 06:32:26 +0000 (06:32 +0000)
committerXinliang David Li <davidxl@google.com>
Fri, 10 Jun 2016 06:32:26 +0000 (06:32 +0000)
End-end test with no integrated assembly should be added
at some point (not done now because some bots are not properly configured to
support -no-integrated-as)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272376 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ProfileData/InstrProf.cpp

index 19b3f036b2888c1e5a33ec3f4419ecad97d36c8c..aa84bd375775248f4b2a7aa72a0deb3d3daa97de 100644 (file)
@@ -171,7 +171,7 @@ std::string getPGOFuncNameVarName(StringRef FuncName,
     return VarName;
 
   // Now fix up illegal chars in local VarName that may upset the assembler.
-  const char *InvalidChars = "-:<>\"'";
+  const char *InvalidChars = "-:<>/\"'";
   size_t found = VarName.find_first_of(InvalidChars);
   while (found != std::string::npos) {
     VarName[found] = '_';