[llvm-commits] [hlvm] r38315 - /hlvm/trunk/hlvm/AST/Type.h

Reid Spencer reid at x10sys.com
Sat Jul 7 17:02:17 PDT 2007


Author: reid
Date: Sat Jul  7 19:02:17 2007
New Revision: 38315

URL: http://llvm.org/viewvc/llvm-project?rev=38315&view=rev
Log:
Make some accessor methods "const"

Modified:
    hlvm/trunk/hlvm/AST/Type.h

Modified: hlvm/trunk/hlvm/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/hlvm/AST/Type.h?rev=38315&r1=38314&r2=38315&view=diff

==============================================================================
--- hlvm/trunk/hlvm/AST/Type.h (original)
+++ hlvm/trunk/hlvm/AST/Type.h Sat Jul  7 19:02:17 2007
@@ -458,10 +458,10 @@
   public:
     virtual const char* getPrimitiveName() const;
     /// Get the mantissa bits
-    uint32_t getMantissa() { return mantissa; }
+    uint32_t getMantissa() const { return mantissa; }
 
     /// Get the exponent bits
-    uint32_t getExponent() { return exponent; }
+    uint32_t getExponent() const { return exponent; }
 
     // Methods to support type inquiry via is, cast, dyn_cast
     static inline bool classof(const RealType*) { return true; }





More information about the llvm-commits mailing list