forked from OSchip/llvm-project
Eliminate unnecessary empty string literals.
llvm-svn: 110183
This commit is contained in:
parent
839c972102
commit
5cae103392
|
@ -199,7 +199,7 @@ const std::string SelectionDAG::getGraphAttrs(const SDNode *N) const {
|
|||
#else
|
||||
errs() << "SelectionDAG::getGraphAttrs is only available in debug builds"
|
||||
<< " on systems with Graphviz or gv!\n";
|
||||
return std::string("");
|
||||
return std::string();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -276,7 +276,7 @@ Path::GetCurrentDirectory() {
|
|||
char pathname[MAXPATHLEN];
|
||||
if (!getcwd(pathname,MAXPATHLEN)) {
|
||||
assert (false && "Could not query current working directory.");
|
||||
return Path("");
|
||||
return Path();
|
||||
}
|
||||
|
||||
return Path(pathname);
|
||||
|
@ -408,7 +408,7 @@ Path::getSuffix() const {
|
|||
|
||||
std::string::size_type dot = path.rfind('.');
|
||||
if (dot == std::string::npos || dot < slash)
|
||||
return StringRef("");
|
||||
return StringRef();
|
||||
else
|
||||
return StringRef(path).substr(dot + 1);
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ template class llvm::SymbolTableListTraits<GlobalAlias, Module>;
|
|||
//
|
||||
|
||||
Module::Module(StringRef MID, LLVMContext& C)
|
||||
: Context(C), Materializer(NULL), ModuleID(MID), DataLayout("") {
|
||||
: Context(C), Materializer(NULL), ModuleID(MID) {
|
||||
ValSymTab = new ValueSymbolTable();
|
||||
TypeSymTab = new TypeSymbolTable();
|
||||
NamedMDSymTab = new StringMap<NamedMDNode *>();
|
||||
|
|
Loading…
Reference in New Issue