[llvm-commits] [llvm] r135323 - in /llvm/trunk: include/llvm/InlineAsm.h lib/VMCore/InlineAsm.cpp

Chris Lattner sabre at nondot.org
Fri Jul 15 16:15:45 PDT 2011


Author: lattner
Date: Fri Jul 15 18:15:45 2011
New Revision: 135323

URL: http://llvm.org/viewvc/llvm-project?rev=135323&view=rev
Log:
deconstify getType()'s.

Modified:
    llvm/trunk/include/llvm/InlineAsm.h
    llvm/trunk/lib/VMCore/InlineAsm.cpp

Modified: llvm/trunk/include/llvm/InlineAsm.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/InlineAsm.h?rev=135323&r1=135322&r2=135323&view=diff
==============================================================================
--- llvm/trunk/include/llvm/InlineAsm.h (original)
+++ llvm/trunk/include/llvm/InlineAsm.h Fri Jul 15 18:15:45 2011
@@ -64,13 +64,13 @@
   
   /// 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; }

Modified: llvm/trunk/lib/VMCore/InlineAsm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/InlineAsm.cpp?rev=135323&r1=135322&r2=135323&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/InlineAsm.cpp (original)
+++ llvm/trunk/lib/VMCore/InlineAsm.cpp Fri Jul 15 18:15:45 2011
@@ -51,7 +51,7 @@
   delete this;
 }
 
-const FunctionType *InlineAsm::getFunctionType() const {
+FunctionType *InlineAsm::getFunctionType() const {
   return cast<FunctionType>(getType()->getElementType());
 }
     





More information about the llvm-commits mailing list