File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
include/llvm/DebugInfo/Symbolize Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,7 @@ class LLVMSymbolizer {
120
120
void pruneCache ();
121
121
122
122
static std::string
123
- DemangleName (const std::string &Name,
124
- const SymbolizableModule *DbiModuleDescriptor);
123
+ DemangleName (StringRef Name, const SymbolizableModule *DbiModuleDescriptor);
125
124
126
125
void setBuildIDFetcher (std::unique_ptr<BuildIDFetcher> Fetcher) {
127
126
BIDFetcher = std::move (Fetcher);
Original file line number Diff line number Diff line change @@ -747,7 +747,7 @@ StringRef demanglePE32ExternCFunc(StringRef SymbolName) {
747
747
} // end anonymous namespace
748
748
749
749
std::string
750
- LLVMSymbolizer::DemangleName (const std::string & Name,
750
+ LLVMSymbolizer::DemangleName (StringRef Name,
751
751
const SymbolizableModule *DbiModuleDescriptor) {
752
752
std::string Result;
753
753
if (nonMicrosoftDemangle (Name, Result))
@@ -761,7 +761,7 @@ LLVMSymbolizer::DemangleName(const std::string &Name,
761
761
MSDemangleFlags (MSDF_NoAccessSpecifier | MSDF_NoCallingConvention |
762
762
MSDF_NoMemberType | MSDF_NoReturnType));
763
763
if (status != 0 )
764
- return Name;
764
+ return std::string{ Name} ;
765
765
Result = DemangledName;
766
766
free (DemangledName);
767
767
return Result;
@@ -775,7 +775,7 @@ LLVMSymbolizer::DemangleName(const std::string &Name,
775
775
return Result;
776
776
return DemangledCName;
777
777
}
778
- return Name;
778
+ return std::string{ Name} ;
779
779
}
780
780
781
781
void LLVMSymbolizer::recordAccess (CachedBinary &Bin) {
You can’t perform that action at this time.
0 commit comments