improve comments.
authorChris Lattner <sabre@nondot.org>
Thu, 3 Sep 2009 06:00:00 +0000 (06:00 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 3 Sep 2009 06:00:00 +0000 (06:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80897 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineOperand.h

index 741ed991702c1d42d892e5c2d7daacac2dfb1a9c..f715c445f8abb861d118f08a43b15568fcd282f0 100644 (file)
@@ -110,7 +110,7 @@ private:
         GlobalValue *GV;          // For MO_GlobalAddress.
         MDNode *Node;             // For MO_Metadata.
       } Val;
-      int64_t Offset;   // An offset from the object.
+      int64_t Offset;             // An offset from the object.
     } OffsetedInfo;
   } Contents;
   
@@ -298,6 +298,8 @@ public:
     return Contents.OffsetedInfo.Val.Node;
   }
   
+  /// getOffset - Return the offset from the symbol in this operand. This always
+  /// returns 0 for ExternalSymbol operands.
   int64_t getOffset() const {
     assert((isGlobal() || isSymbol() || isCPI()) &&
            "Wrong MachineOperand accessor");