From c6015f6476530d25dc8fbe7cb5fa4668312a69ac Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Wed, 9 Oct 2013 00:57:22 +0000 Subject: Update error classes from all lowercase to camel case. llvm-svn: 192261 --- lld/lib/Core/LinkingContext.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lld/lib/Core/LinkingContext.cpp') diff --git a/lld/lib/Core/LinkingContext.cpp b/lld/lib/Core/LinkingContext.cpp index 22a9ccf6e05..31dfed40437 100644 --- a/lld/lib/Core/LinkingContext.cpp +++ b/lld/lib/Core/LinkingContext.cpp @@ -85,8 +85,8 @@ ErrorOr LinkingContext::nextFile() { // initialized. Initialize it with the first element of the input graph. if (_currentInputElement == nullptr) { ErrorOr elem = inputGraph().getNextInputElement(); - if (error_code(elem) == input_graph_error::no_more_elements) - return make_error_code(input_graph_error::no_more_files); + if (error_code(elem) == InputGraphError::no_more_elements) + return make_error_code(InputGraphError::no_more_files); _currentInputElement = *elem; } @@ -96,13 +96,13 @@ ErrorOr LinkingContext::nextFile() { // graph. for (;;) { ErrorOr nextFile = _currentInputElement->getNextFile(); - if (error_code(nextFile) != input_graph_error::no_more_files) + if (error_code(nextFile) != InputGraphError::no_more_files) return std::move(nextFile); ErrorOr elem = inputGraph().getNextInputElement(); - if (error_code(elem) == input_graph_error::no_more_elements || + if (error_code(elem) == InputGraphError::no_more_elements || *elem == nullptr) - return make_error_code(input_graph_error::no_more_files); + return make_error_code(InputGraphError::no_more_files); _currentInputElement = *elem; } } -- cgit v1.2.3