diff options
author | Karl Schimpf <kschimpf@google.com> | 2013-09-18 14:24:56 -0700 |
---|---|---|
committer | Karl Schimpf <kschimpf@google.com> | 2013-09-18 14:24:56 -0700 |
commit | 197cadba6026114ce62ed57dafe2125e70500a6b (patch) | |
tree | abcab011a5b07649e9decf60cc296db10c17601b /lib/Bitcode/NaCl/Writer/NaClValueEnumerator.cpp | |
parent | 72f158730cf2073e23e8f2795192a6d6f08140df (diff) |
Remove code referring to PNaCl version 1, since it is no longer used.
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3590
R=mseaborn@chromium.org
Review URL: https://codereview.chromium.org/24232002
Diffstat (limited to 'lib/Bitcode/NaCl/Writer/NaClValueEnumerator.cpp')
-rw-r--r-- | lib/Bitcode/NaCl/Writer/NaClValueEnumerator.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Bitcode/NaCl/Writer/NaClValueEnumerator.cpp b/lib/Bitcode/NaCl/Writer/NaClValueEnumerator.cpp index f1ae2584e1..6b2ad49c76 100644 --- a/lib/Bitcode/NaCl/Writer/NaClValueEnumerator.cpp +++ b/lib/Bitcode/NaCl/Writer/NaClValueEnumerator.cpp @@ -299,9 +299,6 @@ void NaClValueEnumerator::EnumerateValue(const Value *VIn) { Type *NaClValueEnumerator::NormalizeType(Type *Ty) const { - if (PNaClVersion == 1) - return Ty; - if (Ty->isPointerTy()) return IntPtrType; if (FunctionType *FTy = dyn_cast<FunctionType>(Ty)) { @@ -316,7 +313,7 @@ Type *NaClValueEnumerator::NormalizeType(Type *Ty) const { void NaClValueEnumerator::EnumerateType(Type *Ty, bool InsideOptimizeTypes) { // Pointer types do not need to be given type IDs. - if (Ty->isPointerTy() && PNaClVersion >= 2) + if (Ty->isPointerTy()) Ty = Ty->getPointerElementType(); Ty = NormalizeType(Ty); @@ -595,7 +592,6 @@ static inline bool IsInherentPtr(const Value *V) { // Note: This function is based on the comments in // llvm/lib/Transforms/NaCl/ReplacePtrsWithInts.cpp. const Value *NaClValueEnumerator::ElideCasts(const Value *V) { - if (PNaClVersion == 1) return V; if (const Instruction *I = dyn_cast<Instruction>(V)) { switch (I->getOpcode()) { default: |