1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Don't fail to load runtime if running LLI from the current directory

llvm-svn: 1044
This commit is contained in:
Chris Lattner 2001-10-30 16:40:37 +00:00
parent 7f8034b73b
commit 727495d6dc

View File

@ -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: "