From f04de6ec48881aaa88004e7ddb36beb352339ef2 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Fri, 31 Oct 2014 21:37:49 +0000 Subject: [Object] Modify OwningBinary's interface to separate inspection from ownership. The getBinary and getBuffer method now return ordinary pointers of appropriate const-ness. Ownership is transferred by calling takeBinary(), which returns a pair of the Binary and a MemoryBuffer. llvm-svn: 221003 --- llvm/tools/llvm-cov/TestingSupport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/llvm-cov/TestingSupport.cpp') diff --git a/llvm/tools/llvm-cov/TestingSupport.cpp b/llvm/tools/llvm-cov/TestingSupport.cpp index aa07a79e78d..537f133c647 100644 --- a/llvm/tools/llvm-cov/TestingSupport.cpp +++ b/llvm/tools/llvm-cov/TestingSupport.cpp @@ -41,7 +41,7 @@ int convertForTestingMain(int argc, const char *argv[]) { errs() << "error: " << Err.message() << "\n"; return 1; } - ObjectFile *OF = ObjErr.get().getBinary().get(); + ObjectFile *OF = ObjErr.get().getBinary(); auto BytesInAddress = OF->getBytesInAddress(); if (BytesInAddress != 8) { errs() << "error: 64 bit binary expected\n"; -- cgit v1.2.3