diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-28 04:51:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-28 04:51:09 +0000 |
commit | 5240dac674f9b7104d799180d48ca85e13d95502 (patch) | |
tree | 1a434fa9c4d8a0826dc96f24c6af9784f9031f7c | |
parent | fd63f25fbddd433555801b24851155b49c673bef (diff) | |
download | external_llvm-5240dac674f9b7104d799180d48ca85e13d95502.zip external_llvm-5240dac674f9b7104d799180d48ca85e13d95502.tar.gz external_llvm-5240dac674f9b7104d799180d48ca85e13d95502.tar.bz2 |
Module's are no longer values
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2354 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 41c139f..51ffbf6 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -48,8 +48,6 @@ static const Module *getModuleFromVal(const Value *V) { return M ? M->getParent() : 0; } else if (const GlobalValue *GV = dyn_cast<const GlobalValue>(V)) return GV->getParent(); - else if (const Module *Mod = dyn_cast<const Module>(V)) - return Mod; return 0; } @@ -65,8 +63,6 @@ static SlotCalculator *createSlotCalculator(const Value *V) { return new SlotCalculator(GV->getParent(), true); } else if (const Function *Func = dyn_cast<const Function>(V)) { return new SlotCalculator(Func, true); - } else if (const Module *Mod = dyn_cast<const Module>(V)) { - return new SlotCalculator(Mod, true); } return 0; } @@ -901,7 +897,6 @@ CachedWriter &CachedWriter::operator<<(const Value *V) { case Value::BasicBlockVal: AW->write(cast<BasicBlock>(V)); break; case Value::FunctionVal: AW->write(cast<Function>(V)); break; case Value::GlobalVariableVal: AW->write(cast<GlobalVariable>(V)); break; - case Value::ModuleVal: AW->write(cast<Module>(V)); break; default: Out << "<unknown value type: " << V->getValueType() << ">"; break; } return *this; |