mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 00:24:00 +00:00
Don't fail to load runtime if running LLI from the current directory
llvm-svn: 1044
This commit is contained in:
parent
7f8034b73b
commit
727495d6dc
@ -154,7 +154,10 @@ void Interpreter::loadModule(const string &Filename) {
|
||||
return;
|
||||
}
|
||||
|
||||
string RuntimeLib = getCurrentExecutablePath() + "/RuntimeLib.bc";
|
||||
string RuntimeLib = getCurrentExecutablePath();
|
||||
if (!RuntimeLib.empty()) RuntimeLib += "/";
|
||||
RuntimeLib += "RuntimeLib.bc";
|
||||
|
||||
if (Module *SupportLib = ParseBytecodeFile(RuntimeLib, &ErrorMsg)) {
|
||||
if (LinkModules(CurMod, SupportLib, &ErrorMsg))
|
||||
cerr << "Error Linking runtime library into current module: "
|
||||
|
Loading…
x
Reference in New Issue
Block a user