From a4d22472f35195e04f39caa3a42b0141ed49a4f1 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sun, 31 May 2015 23:52:50 +0000 Subject: Simplify interface of function that doesn't fail. llvm-svn: 238700 --- llvm/lib/Object/ObjectFile.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'llvm/lib/Object/ObjectFile.cpp') diff --git a/llvm/lib/Object/ObjectFile.cpp b/llvm/lib/Object/ObjectFile.cpp index 01b76543fa2..0950c7daafd 100644 --- a/llvm/lib/Object/ObjectFile.cpp +++ b/llvm/lib/Object/ObjectFile.cpp @@ -37,11 +37,7 @@ std::error_code ObjectFile::printSymbolName(raw_ostream &OS, return object_error::success; } -std::error_code ObjectFile::getSymbolAlignment(DataRefImpl DRI, - uint32_t &Result) const { - Result = 0; - return object_error::success; -} +uint32_t ObjectFile::getSymbolAlignment(DataRefImpl DRI) const { return 0; } section_iterator ObjectFile::getRelocatedSection(DataRefImpl Sec) const { return section_iterator(SectionRef(Sec, this)); -- cgit v1.2.3