diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-10-01 18:26:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-10-01 18:26:53 +0000 |
| commit | 8f191129239552b876f2c6717fae9619a7701a03 (patch) | |
| tree | 7ecdf5b84fc94a779ad69fd6f665564d24258f2c /llvm/lib/VMCore/AsmWriter.cpp | |
| parent | 4b717c0edc082166e85181fa70e76b17669aebe2 (diff) | |
| download | bcm5719-llvm-8f191129239552b876f2c6717fae9619a7701a03.tar.gz bcm5719-llvm-8f191129239552b876f2c6717fae9619a7701a03.zip | |
Add more support for new style casts
Convert more code to use them
llvm-svn: 695
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
| -rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index e40006c2330..3c67c2ca088 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -143,9 +143,9 @@ void AssemblyWriter::processSymbolTable(const SymbolTable &ST) { for (; I != End; ++I) { const Value *V = I->second; - if (const ConstPoolVal *CPV = V->castConstant()) { + if (const ConstPoolVal *CPV = cast<const ConstPoolVal>(V)) { processConstant(CPV); - } else if (const Type *Ty = V->castType()) { + } else if (const Type *Ty = cast<const Type>(V)) { Out << "\t%" << I->first << " = type " << Ty->getDescription() << endl; } } |

