diff options
author | Lang Hames <lhames@gmail.com> | 2014-10-31 21:37:49 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2014-10-31 21:37:49 +0000 |
commit | f04de6ec48881aaa88004e7ddb36beb352339ef2 (patch) | |
tree | a2c5d8f5eefb9a09fc8e9dee82ea7270e1a7ecd5 /llvm/tools/llvm-cov | |
parent | fca26da4460130992daaa8adfe4f74aed0c75815 (diff) | |
download | bcm5719-llvm-f04de6ec48881aaa88004e7ddb36beb352339ef2.tar.gz bcm5719-llvm-f04de6ec48881aaa88004e7ddb36beb352339ef2.zip |
[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
Diffstat (limited to 'llvm/tools/llvm-cov')
-rw-r--r-- | llvm/tools/llvm-cov/TestingSupport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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"; |