deconstify getType()'s.
authorChris Lattner <sabre@nondot.org>
Fri, 15 Jul 2011 23:15:45 +0000 (23:15 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 15 Jul 2011 23:15:45 +0000 (23:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135323 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/InlineAsm.h
lib/VMCore/InlineAsm.cpp

index ed5bf8b38af12a165acfd68d03644bb8c79f4506..a98aff178cc43a98b434367a1d77ce322437a531 100644 (file)
@@ -64,13 +64,13 @@ public:
   
   /// getType - InlineAsm's are always pointers.
   ///
-  const PointerType *getType() const {
-    return reinterpret_cast<const PointerType*>(Value::getType());
+  PointerType *getType() const {
+    return reinterpret_cast<PointerType*>(Value::getType());
   }
   
   /// getFunctionType - InlineAsm's are always pointers to functions.
   ///
-  const FunctionType *getFunctionType() const;
+  FunctionType *getFunctionType() const;
   
   const std::string &getAsmString() const { return AsmString; }
   const std::string &getConstraintString() const { return Constraints; }
index 5ae4a1bb94fc61c725331a5921af0cc09ffc67d1..4a03b395e98e767369cda5af54680736fb60d502 100644 (file)
@@ -51,7 +51,7 @@ void InlineAsm::destroyConstant() {
   delete this;
 }
 
-const FunctionType *InlineAsm::getFunctionType() const {
+FunctionType *InlineAsm::getFunctionType() const {
   return cast<FunctionType>(getType()->getElementType());
 }