Change the begin and end methods in ObjectFile to match the style guide.
Update for llvm api change.