summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ObjectYAML/ELFYAML.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/ObjectYAML/ELFYAML.cpp')
-rw-r--r--llvm/lib/ObjectYAML/ELFYAML.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/ObjectYAML/ELFYAML.cpp b/llvm/lib/ObjectYAML/ELFYAML.cpp
index a81d27eed6b..068f3453d57 100644
--- a/llvm/lib/ObjectYAML/ELFYAML.cpp
+++ b/llvm/lib/ObjectYAML/ELFYAML.cpp
@@ -894,10 +894,8 @@ struct NormalizedOther {
if (to_integer(Name, Val))
return Val;
- llvm::WithColor::error()
- << "an unknown value is used for symbol's 'Other' field: " << Name
- << ".\n";
- exit(1);
+ YamlIO.setError("an unknown value is used for symbol's 'Other' field: " +
+ Name);
}
Optional<uint8_t> denormalize(IO &) {
@@ -942,7 +940,7 @@ struct NormalizedOther {
return Map;
}
- const IO &YamlIO;
+ IO &YamlIO;
Optional<std::vector<StOtherPiece>> Other;
std::string UnknownFlagsHolder;
};
OpenPOWER on IntegriCloud