[llvm] r272376 - Bug fix remove another illegal char from prof symbol name

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 9 23:32:26 PDT 2016


Author: davidxl
Date: Fri Jun 10 01:32:26 2016
New Revision: 272376

URL: http://llvm.org/viewvc/llvm-project?rev=272376&view=rev
Log:
Bug fix remove another illegal char from prof symbol name

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)


Modified:
    llvm/trunk/lib/ProfileData/InstrProf.cpp

Modified: llvm/trunk/lib/ProfileData/InstrProf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/InstrProf.cpp?rev=272376&r1=272375&r2=272376&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/InstrProf.cpp (original)
+++ llvm/trunk/lib/ProfileData/InstrProf.cpp Fri Jun 10 01:32:26 2016
@@ -171,7 +171,7 @@ std::string getPGOFuncNameVarName(String
     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] = '_';




More information about the llvm-commits mailing list