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 | f491044d0f28aed7ad8c0f4fbd5c36175eb6d029 (patch) | |
| tree | 5c9981d545e6637c086213ffcd4b5f8cc154d239 /llvm/lib | |
| parent | 776bfa20a9f6810c9f31e32d5d10cd1dc191c476 (diff) | |
| download | llvm-f491044d0f28aed7ad8c0f4fbd5c36175eb6d029.zip llvm-f491044d0f28aed7ad8c0f4fbd5c36175eb6d029.tar.gz llvm-f491044d0f28aed7ad8c0f4fbd5c36175eb6d029.tar.bz2 | |
Module's are no longer values
llvm-svn: 2354
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 41c139f..51ffbf6 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/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; |
