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:
David Nadlinger
2011-04-24 12:21:33 +02:00
parent 009ce6e161
commit 7a24e12736
15 changed files with 25 additions and 69 deletions

View File

@@ -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);
}
}