diff options
author | Fangrui Song <maskray@google.com> | 2019-05-10 09:59:04 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-05-10 09:59:04 +0000 |
commit | e357ca82311ff40a0be1a80c8513f37aff93a0a2 (patch) | |
tree | 830dc44e02f0bdf872aefd17e9497a6eeb0dee5e /llvm/lib/Object/IRObjectFile.cpp | |
parent | 954c5394c3d364e2623ec0dc05cd5acd0c668e93 (diff) | |
download | bcm5719-llvm-e357ca82311ff40a0be1a80c8513f37aff93a0a2.tar.gz bcm5719-llvm-e357ca82311ff40a0be1a80c8513f37aff93a0a2.zip |
[Object] Change SymbolicFile::printSymbolName to use Error
llvm-svn: 360414
Diffstat (limited to 'llvm/lib/Object/IRObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/IRObjectFile.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Object/IRObjectFile.cpp b/llvm/lib/Object/IRObjectFile.cpp index d157908a856..debe7899bfe 100644 --- a/llvm/lib/Object/IRObjectFile.cpp +++ b/llvm/lib/Object/IRObjectFile.cpp @@ -42,10 +42,9 @@ void IRObjectFile::moveSymbolNext(DataRefImpl &Symb) const { Symb.p += sizeof(ModuleSymbolTable::Symbol); } -std::error_code IRObjectFile::printSymbolName(raw_ostream &OS, - DataRefImpl Symb) const { +Error IRObjectFile::printSymbolName(raw_ostream &OS, DataRefImpl Symb) const { SymTab.printSymbolName(OS, getSym(Symb)); - return std::error_code(); + return Error::success(); } uint32_t IRObjectFile::getSymbolFlags(DataRefImpl Symb) const { |