mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Perfer !string.empty() over string != "".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105397 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aede8118ad
commit
662f738ec3
@ -84,7 +84,7 @@ namespace options {
|
|||||||
}
|
}
|
||||||
} else if (llvm::StringRef(opt).startswith("also-emit-llvm=")) {
|
} else if (llvm::StringRef(opt).startswith("also-emit-llvm=")) {
|
||||||
const char *path = opt + strlen("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. "
|
(*message)(LDPL_WARNING, "Path to the output IL file specified twice. "
|
||||||
"Discarding %s", opt);
|
"Discarding %s", opt);
|
||||||
} else {
|
} 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());
|
bool err = lto_codegen_write_merged_modules(cg, options::bc_path.c_str());
|
||||||
if (err)
|
if (err)
|
||||||
(*message)(LDPL_FATAL, "Failed to write the output file.");
|
(*message)(LDPL_FATAL, "Failed to write the output file.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user