[llvm-commits] [llvm] r142261 - /llvm/trunk/include/llvm/Object/MachO.h

Owen Anderson resistor at mac.com
Mon Oct 17 14:37:03 PDT 2011


Author: resistor
Date: Mon Oct 17 16:37:03 2011
New Revision: 142261

URL: http://llvm.org/viewvc/llvm-project?rev=142261&view=rev
Log:
Add an accessor to get the underlying MachO representation.

Modified:
    llvm/trunk/include/llvm/Object/MachO.h

Modified: llvm/trunk/include/llvm/Object/MachO.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/MachO.h?rev=142261&r1=142260&r2=142261&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/MachO.h (original)
+++ llvm/trunk/include/llvm/Object/MachO.h Mon Oct 17 16:37:03 2011
@@ -38,6 +38,8 @@
   virtual StringRef getFileFormatName() const;
   virtual unsigned getArch() const;
 
+  MachOObject *getObject() { return MachOObj; }
+
 protected:
   virtual error_code getSymbolNext(DataRefImpl Symb, SymbolRef &Res) const;
   virtual error_code getSymbolName(DataRefImpl Symb, StringRef &Res) const;





More information about the llvm-commits mailing list