llvm.org GIT mirror llvm / f4c1325
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) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272376 91177308-0d34-0410-b5e6-96231b3b80d8 Xinliang David Li 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
170170 return VarName;
171171
172172 // Now fix up illegal chars in local VarName that may upset the assembler.
173 const char *InvalidChars = "-:<>\"'";
173 const char *InvalidChars = "-:<>/\"'";
174174 size_t found = VarName.find_first_of(InvalidChars);
175175 while (found != std::string::npos) {
176176 VarName[found] = '_';