mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-16 11:24:39 +00:00
eliminate the std::ostream forms of the bitcode writing APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79840 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -12,11 +12,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Bitcode/Deserialize.h"
|
||||
|
||||
#ifdef DEBUG_BACKPATCH
|
||||
#include "llvm/Support/Streams.h"
|
||||
#endif
|
||||
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
using namespace llvm;
|
||||
|
||||
Deserializer::Deserializer(BitstreamReader& stream)
|
||||
@@ -357,7 +353,7 @@ void Deserializer::RegisterPtr(const SerializedPtrID& PtrId,
|
||||
assert (!HasFinalPtr(E) && "Pointer already registered.");
|
||||
|
||||
#ifdef DEBUG_BACKPATCH
|
||||
llvm::cerr << "RegisterPtr: " << PtrId << " => " << Ptr << "\n";
|
||||
errs() << "RegisterPtr: " << PtrId << " => " << Ptr << "\n";
|
||||
#endif
|
||||
|
||||
SetPtr(E,Ptr);
|
||||
@@ -377,8 +373,8 @@ void Deserializer::ReadUIntPtr(uintptr_t& PtrRef,
|
||||
PtrRef = GetFinalPtr(E);
|
||||
|
||||
#ifdef DEBUG_BACKPATCH
|
||||
llvm::cerr << "ReadUintPtr: " << PtrId
|
||||
<< " <-- " << (void*) GetFinalPtr(E) << '\n';
|
||||
errs() << "ReadUintPtr: " << PtrId
|
||||
<< " <-- " << (void*) GetFinalPtr(E) << '\n';
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
@@ -386,7 +382,7 @@ void Deserializer::ReadUIntPtr(uintptr_t& PtrRef,
|
||||
"Client forbids backpatching for this pointer.");
|
||||
|
||||
#ifdef DEBUG_BACKPATCH
|
||||
llvm::cerr << "ReadUintPtr: " << PtrId << " (NO PTR YET)\n";
|
||||
errs() << "ReadUintPtr: " << PtrId << " (NO PTR YET)\n";
|
||||
#endif
|
||||
|
||||
// Register backpatch. Check the freelist for a BPNode.
|
||||
|
Reference in New Issue
Block a user