diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-06-03 17:13:23 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-06-03 17:13:23 +0000 |
commit | ca4180c92aa5c6ac4a3ccad54fcc9957d6f9ca75 (patch) | |
tree | 5db96217a63d46667bf741d8859f8923e3a8a2a1 | |
parent | 9f4ab44fe46f106fbe69271094d441ff76b4d82d (diff) | |
download | bcm5719-llvm-ca4180c92aa5c6ac4a3ccad54fcc9957d6f9ca75.tar.gz bcm5719-llvm-ca4180c92aa5c6ac4a3ccad54fcc9957d6f9ca75.zip |
Perfer !string.empty() over string != "".
llvm-svn: 105397
-rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 9dd00eebff5..f04d9358cee 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -84,7 +84,7 @@ namespace options { } } else if (llvm::StringRef(opt).startswith("also-emit-llvm=")) { const char *path = opt + strlen("also-emit-llvm="); - if (bc_path != "") { + if (!bc_path.empty()) { (*message)(LDPL_WARNING, "Path to the output IL file specified twice. " "Discarding %s", opt); } else { @@ -381,7 +381,7 @@ static ld_plugin_status all_symbols_read_hook(void) { } } - if (options::bc_path != "") { + if (!options::bc_path.empty()) { bool err = lto_codegen_write_merged_modules(cg, options::bc_path.c_str()); if (err) (*message)(LDPL_FATAL, "Failed to write the output file."); |