[llvm] r371025 - Revert r371023 "[lib/ObjectYAML] - Stop calling error(1) when mapping the st_other field of a symbol." (2)
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 5 01:39:44 PDT 2019
Author: grimar
Date: Thu Sep 5 01:39:44 2019
New Revision: 371025
URL: http://llvm.org/viewvc/llvm-project?rev=371025&view=rev
Log:
Revert r371023 "[lib/ObjectYAML] - Stop calling error(1) when mapping the st_other field of a symbol." (2)
Forgot to revert the cpp file.
Modified:
llvm/trunk/lib/ObjectYAML/ELFYAML.cpp
Modified: llvm/trunk/lib/ObjectYAML/ELFYAML.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ObjectYAML/ELFYAML.cpp?rev=371025&r1=371024&r2=371025&view=diff
==============================================================================
--- llvm/trunk/lib/ObjectYAML/ELFYAML.cpp (original)
+++ llvm/trunk/lib/ObjectYAML/ELFYAML.cpp Thu Sep 5 01:39:44 2019
@@ -894,8 +894,10 @@ struct NormalizedOther {
if (to_integer(Name, Val))
return Val;
- YamlIO.setError("an unknown value is used for symbol's 'Other' field: " +
- Name);
+ llvm::WithColor::error()
+ << "an unknown value is used for symbol's 'Other' field: " << Name
+ << ".\n";
+ exit(1);
}
Optional<uint8_t> denormalize(IO &) {
@@ -940,7 +942,7 @@ struct NormalizedOther {
return Map;
}
- IO &YamlIO;
+ const IO &YamlIO;
Optional<std::vector<StOtherPiece>> Other;
std::string UnknownFlagsHolder;
};
More information about the llvm-commits
mailing list