aboutsummaryrefslogtreecommitdiff
path: root/lib/Bitcode/NaCl/Writer/NaClValueEnumerator.cpp
diff options
context:
space:
mode:
authorKarl Schimpf <kschimpf@google.com>2013-08-30 09:10:39 -0700
committerKarl Schimpf <kschimpf@google.com>2013-08-30 09:10:39 -0700
commit06bf94d7c3fd693b3c6e3b71178514e5ed59489a (patch)
tree71cfcd99369833fc7635ffaa1865398a1963bd87 /lib/Bitcode/NaCl/Writer/NaClValueEnumerator.cpp
parent2302e5d39e2302962d1a0e45d60e00ed47b9b061 (diff)
Revert "Remove generating STRUCT_ANON records in PNaCl bitcode files."
This reverts commit 2302e5d39e2302962d1a0e45d60e00ed47b9b061. BUG= R=eliben@chromium.org Review URL: https://codereview.chromium.org/23827002
Diffstat (limited to 'lib/Bitcode/NaCl/Writer/NaClValueEnumerator.cpp')
-rw-r--r--lib/Bitcode/NaCl/Writer/NaClValueEnumerator.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Bitcode/NaCl/Writer/NaClValueEnumerator.cpp b/lib/Bitcode/NaCl/Writer/NaClValueEnumerator.cpp
index 8e35f59909..8cfdf13240 100644
--- a/lib/Bitcode/NaCl/Writer/NaClValueEnumerator.cpp
+++ b/lib/Bitcode/NaCl/Writer/NaClValueEnumerator.cpp
@@ -89,10 +89,6 @@ NaClValueEnumerator::NaClValueEnumerator(const Module *M, uint32_t PNaClVersion)
for (Function::const_iterator BB = F->begin(), E = F->end(); BB != E; ++BB)
for (BasicBlock::const_iterator I = BB->begin(), E = BB->end(); I!=E;++I){
- // Don't generate types for elided pointer casts!
- if (I == ElideCasts(I))
- continue;
-
for (User::const_op_iterator OI = I->op_begin(), E = I->op_end();
OI != E; ++OI) {
EnumerateOperandType(*OI);
@@ -360,11 +356,6 @@ void NaClValueEnumerator::EnumerateType(Type *Ty, bool InsideOptimizeTypes) {
// Enumerate the types for the specified value. If the value is a constant,
// walk through it, enumerating the types of the constant.
void NaClValueEnumerator::EnumerateOperandType(const Value *V) {
- // Note: We intentionally don't create a type id for global variables,
- // since the type is automatically generated by the reader before any
- // use of the global variable.
- if (isa<GlobalVariable>(V)) return;
-
EnumerateType(V->getType());
if (const Constant *C = dyn_cast<Constant>(V)) {