mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
Switch this API to StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76554 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fbee579ed4
commit
bda9653f5b
@ -1619,17 +1619,18 @@ void MSILWriter::printGlobalVariables() {
|
||||
|
||||
|
||||
const char* MSILWriter::getLibraryName(const Function* F) {
|
||||
return getLibraryForSymbol(F->getName().c_str(), true, F->getCallingConv());
|
||||
return getLibraryForSymbol(F->getName(), true, F->getCallingConv());
|
||||
}
|
||||
|
||||
|
||||
const char* MSILWriter::getLibraryName(const GlobalVariable* GV) {
|
||||
return getLibraryForSymbol(Mang->getMangledName(GV).c_str(), false, 0);
|
||||
return getLibraryForSymbol(Mang->getMangledName(GV), false, 0);
|
||||
}
|
||||
|
||||
|
||||
const char* MSILWriter::getLibraryForSymbol(const char* Name, bool isFunction,
|
||||
unsigned CallingConv) {
|
||||
const char* MSILWriter::getLibraryForSymbol(const StringRef &Name,
|
||||
bool isFunction,
|
||||
unsigned CallingConv) {
|
||||
// TODO: Read *.def file with function and libraries definitions.
|
||||
return "MSVCRT.DLL";
|
||||
}
|
||||
|
@ -252,7 +252,7 @@ namespace {
|
||||
|
||||
const char* getLibraryName(const GlobalVariable* GV);
|
||||
|
||||
const char* getLibraryForSymbol(const char* Name, bool isFunction,
|
||||
const char* getLibraryForSymbol(const StringRef &Name, bool isFunction,
|
||||
unsigned CallingConv);
|
||||
|
||||
void printExternals();
|
||||
|
Loading…
Reference in New Issue
Block a user