Lines Matching refs:string
47 DeviceBitcodeCompiler::DeviceBitcodeCompiler(const std::string &working_dir, const std::string &sys… in DeviceBitcodeCompiler()
52 std::string cmd("echo "); in cleanupPost()
69 int DeviceBitcodeCompiler::parseLDFlags(BitcodeInfo &info, const std::string &orig_str) { in parseLDFlags()
71 std::string str; in parseLDFlags()
73 if (str.find("--sysroot") != std::string::npos) { in parseLDFlags()
109 std::vector<std::string> bc_files,lib_files; in getBitcodeFiles()
119 std::string filename(entry->d_name); in getBitcodeFiles()
120 std::string full_path = mWorkingDir + "/" + filename; in getBitcodeFiles()
124 std::string libpath = mSysroot + "/usr/lib/" + filename.substr(0, filename.rfind('.')) + ".so"; in getBitcodeFiles()
164 for (std::vector<std::string>::const_iterator i = lib_files.begin(), in getBitcodeFiles()
166 std::string cmd = "rm -f " + *i; in getBitcodeFiles()
170 for (std::vector<std::string>::const_iterator i = bc_files.begin(), in getBitcodeFiles()
184 std::string cmd = std::string("LD_LIBRARY_PATH=") + mSysroot + "/usr/lib"; in prepareToolchain()
189 cmd = std::string("LD_LIBRARY_PATH=") + mSysroot + "/usr/lib"; in prepareToolchain()
199 cmd = std::string("LD_LIBRARY_PATH=") + mSysroot + "/usr/lib"; in prepareToolchain()
220 std::string deplib; in copyRuntime()
223 std::string libname = "lib" + deplib.substr(2) + ".so"; in copyRuntime()
224 std::string libpath = mSysroot + "/usr/lib/" + libname; in copyRuntime()
235 void DeviceBitcodeCompiler::removeIntermediateFile(const std::string &path) { in removeIntermediateFile()
236 runCmd(std::string("rm -f ") + path); in removeIntermediateFile()