mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-11 12:16:07 +00:00
Do not return early.
Early return in this context is a bit confusing, so avoid doing it. llvm-svn: 265236
This commit is contained in:
parent
1fc5d48877
commit
d1aa97b5c2
@ -174,17 +174,16 @@ static void checkOptions(opt::InputArgList &Args) {
|
||||
if (Config->Pie && Config->Shared)
|
||||
error("-shared and -pie may not be used together");
|
||||
|
||||
if (!Config->Relocatable)
|
||||
return;
|
||||
|
||||
if (Config->Shared)
|
||||
error("-r and -shared may not be used together");
|
||||
if (Config->GcSections)
|
||||
error("-r and --gc-sections may not be used together");
|
||||
if (Config->ICF)
|
||||
error("-r and --icf may not be used together");
|
||||
if (Config->Pie)
|
||||
error("-r and -pie may not be used together");
|
||||
if (Config->Relocatable) {
|
||||
if (Config->Shared)
|
||||
error("-r and -shared may not be used together");
|
||||
if (Config->GcSections)
|
||||
error("-r and --gc-sections may not be used together");
|
||||
if (Config->ICF)
|
||||
error("-r and --icf may not be used together");
|
||||
if (Config->Pie)
|
||||
error("-r and -pie may not be used together");
|
||||
}
|
||||
}
|
||||
|
||||
static StringRef
|
||||
|
Loading…
x
Reference in New Issue
Block a user