llvm.org GIT mirror llvm / d98af0a
Eliminate unnecessary empty string literals. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110183 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 9 years ago
3 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
198198 #else
199199 errs() << "SelectionDAG::getGraphAttrs is only available in debug builds"
200200 << " on systems with Graphviz or gv!\n";
201 return std::string("");
201 return std::string();
202202 #endif
203203 }
204204
275275 char pathname[MAXPATHLEN];
276276 if (!getcwd(pathname,MAXPATHLEN)) {
277277 assert (false && "Could not query current working directory.");
278 return Path("");
278 return Path();
279279 }
280280
281281 return Path(pathname);
407407
408408 std::string::size_type dot = path.rfind('.');
409409 if (dot == std::string::npos || dot < slash)
410 return StringRef("");
410 return StringRef();
411411 else
412412 return StringRef(path).substr(dot + 1);
413413 }
5757 //
5858
5959 Module::Module(StringRef MID, LLVMContext& C)
60 : Context(C), Materializer(NULL), ModuleID(MID), DataLayout("") {
60 : Context(C), Materializer(NULL), ModuleID(MID) {
6161 ValSymTab = new ValueSymbolTable();
6262 TypeSymTab = new TypeSymbolTable();
6363 NamedMDSymTab = new StringMap();