forked from OSchip/llvm-project
parent
e7ae31cc25
commit
4d8c0e791e
|
@ -330,10 +330,10 @@ static void DumpSymbolNamesFromFile(std::string &Filename) {
|
|||
OwningPtr<Binary> child;
|
||||
if (error_code ec = i->getAsBinary(child)) {
|
||||
// Try opening it as a bitcode file.
|
||||
MemoryBuffer *buff = i->getBuffer();
|
||||
OwningPtr<MemoryBuffer> buff(i->getBuffer());
|
||||
Module *Result = 0;
|
||||
if (buff)
|
||||
Result = ParseBitcodeFile(buff, Context, &ErrorMessage);
|
||||
Result = ParseBitcodeFile(buff.get(), Context, &ErrorMessage);
|
||||
|
||||
if (Result) {
|
||||
DumpSymbolNamesFromModule(Result);
|
||||
|
|
Loading…
Reference in New Issue