diff options
author | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-06-25 20:44:04 +0000 |
---|---|---|
committer | Anand Shukla <ashukla@cs.uiuc.edu> | 2002-06-25 20:44:04 +0000 |
commit | eea60fc59c0b231bbf9d5ab43c447f936f4012df (patch) | |
tree | 55f19d00a46f33a91757a625cde9d9ef592eec9b | |
parent | a928403ca41f8816f345550eb184175492b64e30 (diff) | |
download | external_llvm-eea60fc59c0b231bbf9d5ab43c447f936f4012df.zip external_llvm-eea60fc59c0b231bbf9d5ab43c447f936f4012df.tar.gz external_llvm-eea60fc59c0b231bbf9d5ab43c447f936f4012df.tar.bz2 |
changes to make it compatible with 64bit gcc
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2790 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Bytecode/Reader/ConstantReader.cpp | 13 | ||||
-rw-r--r-- | lib/Bytecode/Reader/ReaderInternals.h | 7 | ||||
-rw-r--r-- | lib/Bytecode/Writer/Writer.cpp | 2 | ||||
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 1 | ||||
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 1 |
5 files changed, 14 insertions, 10 deletions
diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp index ad27739..7da3a17 100644 --- a/lib/Bytecode/Reader/ConstantReader.cpp +++ b/lib/Bytecode/Reader/ConstantReader.cpp @@ -14,8 +14,8 @@ #include "llvm/GlobalVariable.h" #include <algorithm> #include <iostream> + using std::make_pair; -using std::cerr; const Type *BytecodeParser::parseTypeConstant(const uchar *&Buf, const uchar *EndBuf) { @@ -91,8 +91,9 @@ const Type *BytecodeParser::parseTypeConstant(const uchar *&Buf, } default: - cerr << __FILE__ << ":" << __LINE__ << ": Don't know how to deserialize" - << " primitive Type " << PrimType << "\n"; + std::cerr << __FILE__ << ":" << __LINE__ + << ": Don't know how to deserialize" + << " primitive Type " << PrimType << "\n"; return failure(Val); } } @@ -325,9 +326,9 @@ bool BytecodeParser::parseConstantValue(const uchar *&Buf, const uchar *EndBuf, } default: - cerr << __FILE__ << ":" << __LINE__ - << ": Don't know how to deserialize constant value of type '" - << Ty->getName() << "'\n"; + std::cerr << __FILE__ << ":" << __LINE__ + << ": Don't know how to deserialize constant value of type '" + << Ty->getName() << "'\n"; return failure(true); } diff --git a/lib/Bytecode/Reader/ReaderInternals.h b/lib/Bytecode/Reader/ReaderInternals.h index 4a21962..f98db72 100644 --- a/lib/Bytecode/Reader/ReaderInternals.h +++ b/lib/Bytecode/Reader/ReaderInternals.h @@ -15,12 +15,13 @@ #include <map> #include <utility> #include <list> +#include <iostream> // Enable to trace to figure out what the heck is going on when parsing fails #define TRACE_LEVEL 0 #if TRACE_LEVEL // ByteCodeReading_TRACEer -#define BCR_TRACE(n, X) if (n < TRACE_LEVEL) cerr << std::string(n*2, ' ') << X +#define BCR_TRACE(n, X) if (n < TRACE_LEVEL) std::cerr << std::string(n*2, ' ') << X #else #define BCR_TRACE(n, X) #endif @@ -51,7 +52,7 @@ public: std::string getError() const { return Error; } void dump() const { - cerr << "BytecodeParser instance!\n"; + std::cerr << "BytecodeParser instance!\n"; } private: // All of this data is transient across calls to ParseBytecode @@ -167,7 +168,7 @@ static inline bool readBlock(const uchar *&Buf, const uchar *EndBuf, unsigned &Type, unsigned &Size) { #if DEBUG_OUTPUT bool Result = read(Buf, EndBuf, Type) || read(Buf, EndBuf, Size); - cerr << "StartLoc = " << ((unsigned)Buf & 4095) + std::cerr << "StartLoc = " << ((unsigned)Buf & 4095) << " Type = " << Type << " Size = " << Size << endl; return Result; #else diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp index 5545834..75a25f2 100644 --- a/lib/Bytecode/Writer/Writer.cpp +++ b/lib/Bytecode/Writer/Writer.cpp @@ -199,7 +199,7 @@ void BytecodeWriter::outputSymbolTable(const SymbolTable &MST) { } } -void WriteBytecodeToFile(const Module *C, ostream &Out) { +void WriteBytecodeToFile(const Module *C, std::ostream &Out) { assert(C && "You can't write a null module!!"); std::deque<unsigned char> Buffer; diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 27db6cf..dfb8a19 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -26,6 +26,7 @@ using std::string; using std::map; using std::ostream; +using std::cerr; static std::string getConstStrValue(const Constant* CPV); diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 27db6cf..dfb8a19 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -26,6 +26,7 @@ using std::string; using std::map; using std::ostream; +using std::cerr; static std::string getConstStrValue(const Constant* CPV); |