[llvm-commits] [llvm] r72028 - /llvm/trunk/include/llvm/Instructions.h

Eric Christopher echristo at apple.com
Mon May 18 11:46:57 PDT 2009


Author: echristo
Date: Mon May 18 13:46:57 2009
New Revision: 72028

URL: http://llvm.org/viewvc/llvm-project?rev=72028&view=rev
Log:
Remove getType() overrides for ExtractValueInst and InsertValueInst.

Patch by John McCall.


Modified:
    llvm/trunk/include/llvm/Instructions.h

Modified: llvm/trunk/include/llvm/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=72028&r1=72027&r2=72028&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Instructions.h (original)
+++ llvm/trunk/include/llvm/Instructions.h Mon May 18 13:46:57 2009
@@ -1616,11 +1616,6 @@
 
   virtual ExtractValueInst *clone() const;
 
-  // getType - Overload to return most specific pointer type...
-  const PointerType *getType() const {
-    return reinterpret_cast<const PointerType*>(Instruction::getType());
-  }
-
   /// getIndexedType - Returns the type of the element that would be extracted
   /// with an extractvalue instruction with the specified parameters.
   ///
@@ -1794,11 +1789,6 @@
   /// Transparently provide more efficient getOperand methods.
   DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
 
-  // getType - Overload to return most specific pointer type...
-  const PointerType *getType() const {
-    return reinterpret_cast<const PointerType*>(Instruction::getType());
-  }
-
   typedef const unsigned* idx_iterator;
   inline idx_iterator idx_begin() const { return Indices.begin(); }
   inline idx_iterator idx_end()   const { return Indices.end(); }





More information about the llvm-commits mailing list