diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-01-20 22:54:45 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-01-20 22:54:45 +0000 |
| commit | 7f74a56e2436c40b18a672ad7d58727cd6832329 (patch) | |
| tree | 6a4683a53f7eb71b8a3425008ef21268c2b2c8fd /llvm/lib/Bytecode/Writer/ConstantWriter.cpp | |
| parent | 850d4f6af1a0e9de3fa6e10afb04e3738fcc5d67 (diff) | |
| download | bcm5719-llvm-7f74a56e2436c40b18a672ad7d58727cd6832329.tar.gz bcm5719-llvm-7f74a56e2436c40b18a672ad7d58727cd6832329.zip | |
Changes to build successfully with GCC 3.02
llvm-svn: 1503
Diffstat (limited to 'llvm/lib/Bytecode/Writer/ConstantWriter.cpp')
| -rw-r--r-- | llvm/lib/Bytecode/Writer/ConstantWriter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp index bcfa9765731..73130f3ee87 100644 --- a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp +++ b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp @@ -13,6 +13,8 @@ #include "llvm/ConstantVals.h" #include "llvm/SymbolTable.h" #include "llvm/DerivedTypes.h" +#include <iostream> +using std::cerr; void BytecodeWriter::outputType(const Type *T) { output_vbr((unsigned)T->getPrimitiveID(), Out); @@ -134,7 +136,7 @@ bool BytecodeWriter::outputConstant(const Constant *CPV) { case Type::StructTyID: { const ConstantStruct *CPS = cast<const ConstantStruct>(CPV); - const vector<Use> &Vals = CPS->getValues(); + const std::vector<Use> &Vals = CPS->getValues(); for (unsigned i = 0; i < Vals.size(); ++i) { int Slot = Table.getValSlot(Vals[i]); |

