mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-02 18:43:14 +01:00
Cleanup: Remove unused code in backend, silence some warnings.
This removed quite some clutter that has presumably piled up because LDC is seldom built with a lot of warnings enabled due to DMDFE.
This commit is contained in:
@@ -10,13 +10,6 @@
|
||||
|
||||
namespace opts {
|
||||
|
||||
// Helper function
|
||||
static char toLower(char c) {
|
||||
if (isupper(c))
|
||||
return tolower(c);
|
||||
return c;
|
||||
}
|
||||
|
||||
bool FlagParser::parse(cl::Option &O, llvm::StringRef ArgName, llvm::StringRef Arg, bool &Val) {
|
||||
// Make a std::string out of it to make comparisons easier
|
||||
// (and avoid repeated conversion)
|
||||
@@ -55,7 +48,7 @@ MultiSetter::MultiSetter(bool invert, bool* p, ...) {
|
||||
locations.push_back(p);
|
||||
va_list va;
|
||||
va_start(va, p);
|
||||
while (p = va_arg(va, bool*)) {
|
||||
while ((p = va_arg(va, bool*))) {
|
||||
locations.push_back(p);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user