changes after mspencer reviews in phabricator
llvm-svn: 167871
This commit is contained in:
parent
a5d22811af
commit
85bb045106
|
@ -38,11 +38,7 @@ public:
|
||||||
assert(result.size() == 1);
|
assert(result.size() == 1);
|
||||||
|
|
||||||
// give up the pointer so that this object no longer manages it
|
// give up the pointer so that this object no longer manages it
|
||||||
for (std::unique_ptr<File> &f : result) {
|
return result[0].release();
|
||||||
return f.release();
|
|
||||||
}
|
|
||||||
|
|
||||||
return nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void addAtom(const Atom&) {
|
virtual void addAtom(const Atom&) {
|
||||||
|
@ -67,8 +63,8 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
error_code isDataSymbol(MemoryBuffer *mb, StringRef symbol) const {
|
error_code isDataSymbol(MemoryBuffer *mb, StringRef symbol) const {
|
||||||
llvm::object::ObjectFile *obj =
|
std::unique_ptr<llvm::object::ObjectFile>
|
||||||
llvm::object::ObjectFile::createObjectFile(mb);
|
obj(llvm::object::ObjectFile::createObjectFile(mb));
|
||||||
error_code ec;
|
error_code ec;
|
||||||
llvm::object::SymbolRef::Type symtype;
|
llvm::object::SymbolRef::Type symtype;
|
||||||
uint32_t symflags;
|
uint32_t symflags;
|
||||||
|
|
Loading…
Reference in New Issue