Convert these functions to use ErrorOr.

llvm-svn: 212341
This commit is contained in:
Rafael Espindola
2014-07-04 13:52:01 +00:00
parent ce8a0d6cd8
commit d346cc8efc
2 changed files with 11 additions and 10 deletions

View File

@@ -252,7 +252,7 @@ public:
/// @brief Cheap mechanism to just extract module triple
/// @returns true if an error occurred.
std::error_code ParseTriple(std::string &Triple);
ErrorOr<std::string> parseTriple();
static uint64_t decodeSignRotatedValue(uint64_t V);
@@ -354,7 +354,7 @@ private:
std::error_code ResolveGlobalAndAliasInits();
std::error_code ParseMetadata();
std::error_code ParseMetadataAttachment();
std::error_code ParseModuleTriple(std::string &Triple);
ErrorOr<std::string> parseModuleTriple();
std::error_code ParseUseLists();
std::error_code InitStream();
std::error_code InitStreamFromBuffer();