|
@@ -69,8 +69,8 @@ namespace dxilutil {
|
|
|
llvm::Function *PatchConstantFunc, bool IsLib);
|
|
|
void EmitErrorOnInstruction(llvm::Instruction *I, llvm::StringRef Msg);
|
|
|
void EmitResMappingError(llvm::Instruction *Res);
|
|
|
- std::string FormatMessageAtLocation(const llvm::DebugLoc &DL, llvm::Twine Msg);
|
|
|
- llvm::Twine FormatMessageWithoutLocation(llvm::Twine Msg);
|
|
|
+ std::string FormatMessageAtLocation(const llvm::DebugLoc &DL, const llvm::Twine& Msg);
|
|
|
+ llvm::Twine FormatMessageWithoutLocation(const llvm::Twine& Msg);
|
|
|
// Simple demangle just support case "\01?name@" pattern.
|
|
|
llvm::StringRef DemangleFunctionName(llvm::StringRef name);
|
|
|
// ReplaceFunctionName replaces the undecorated portion of originalName with undecorated newName
|