diff options
author | Rui Ueyama <ruiu@google.com> | 2013-10-09 00:57:22 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-10-09 00:57:22 +0000 |
commit | c6015f6476530d25dc8fbe7cb5fa4668312a69ac (patch) | |
tree | ebb668e4052c5dccd2bee1449e7b54669a64c2d5 /lld/lib/Core/LinkingContext.cpp | |
parent | 1c1b443997f22b63164effd41fbfb7f7c34c8a51 (diff) | |
download | bcm5719-llvm-c6015f6476530d25dc8fbe7cb5fa4668312a69ac.tar.gz bcm5719-llvm-c6015f6476530d25dc8fbe7cb5fa4668312a69ac.zip |
Update error classes from all lowercase to camel case.
llvm-svn: 192261
Diffstat (limited to 'lld/lib/Core/LinkingContext.cpp')
-rw-r--r-- | lld/lib/Core/LinkingContext.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<File &> LinkingContext::nextFile() { // initialized. Initialize it with the first element of the input graph. if (_currentInputElement == nullptr) { ErrorOr<InputElement *> 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<File &> LinkingContext::nextFile() { // graph. for (;;) { ErrorOr<File &> 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<InputElement *> 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; } } |