mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221003 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user