[opaque pointer type] Change GetElementPtrInst::getIndexedType to take the pointee...
[oota-llvm.git] / lib / IR / User.cpp
index cd124df1e93359e1da5b3b1744450447909a0854..ee83eacf2b2b23d0a9290667004087bf40d0248f 100644 (file)
@@ -20,9 +20,6 @@ namespace llvm {
 
 void User::anchor() {}
 
-// replaceUsesOfWith - Replaces all references to the "From" definition with
-// references to the "To" definition.
-//
 void User::replaceUsesOfWith(Value *From, Value *To) {
   if (From == To) return;   // Duh what?
 
@@ -83,28 +80,8 @@ void User::operator delete(void *Usr) {
 //                             Operator Class
 //===----------------------------------------------------------------------===//
 
-#if defined(_MSC_VER)\r
-// In Release modes, Visual Studio complains that the Operator destructor\r
-// never returns, which is true by design. \r
-// This does *not* depend on llvm_unreachable being dependent on NDEBUG:\r
-// even if llvm_unreachable is replaced by __assume(false), VC still warns in\r
-// Release modes but not in Debug modes. The real reason is optimization flags.\r
-// With /Od in Debug modes the warning is not issued whereas with /O1 it is.\r
-// I could not find any documentation to this effect, it is reproducable:\r
-// Try compiling http://msdn.microsoft.com/en-us/library/khwfyc5d(v=vs.90).aspx\r
-// with /O1 and then with /Od.\r
-// Anyhow, solution is same as lib/Support/Process.cpp:~self_process().\r
-\r
-#pragma warning(push)\r
-#pragma warning(disable:4722)\r
-#endif\r
-\r
 Operator::~Operator() {
   llvm_unreachable("should never destroy an Operator");
 }
 
-#if defined(_MSC_VER)\r
-#pragma warning(pop)\r
-#endif\r
-
 } // End llvm namespace