[PATCH] D11028: Make TargetLowering::getPointerTy() taking DataLayout as an argument

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Wed Jul 8 06:09:20 PDT 2015


================
Comment at: lib/CodeGen/TargetLoweringBase.cpp:882
@@ -892,1 +881,3 @@
+MVT TargetLoweringBase::getPointerTy(const DataLayout &DL, uint32_t AS) const {
+  return MVT::getIntegerVT(DL.getPointerSizeInBits(AS));
 }
----------------
Why can't this use getDataLayout?


http://reviews.llvm.org/D11028







More information about the llvm-commits mailing list