diff options
author | Xinliang David Li <davidxl@google.com> | 2016-06-10 06:32:26 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-06-10 06:32:26 +0000 |
commit | eeaf0bcf531ca1b57db89ade2552a0473a9e63f7 (patch) | |
tree | 48df8ace44225d8b4e534d486ef713f091f6acfd | |
parent | 1d58b8d95ef141fb7da335690d7b8195018ba406 (diff) | |
download | bcm5719-llvm-eeaf0bcf531ca1b57db89ade2552a0473a9e63f7.tar.gz bcm5719-llvm-eeaf0bcf531ca1b57db89ade2552a0473a9e63f7.zip |
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)
llvm-svn: 272376
-rw-r--r-- | llvm/lib/ProfileData/InstrProf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp index 19b3f036b28..aa84bd37577 100644 --- a/llvm/lib/ProfileData/InstrProf.cpp +++ b/llvm/lib/ProfileData/InstrProf.cpp @@ -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] = '_'; |