search for: geterroroutputstream

Displaying 3 results from an estimated 3 matches for "geterroroutputstream".

2007 Sep 25
0
[LLVMdev] Compilation Failure
...ined, DOUT is "llvm::OStream(0)", so it > can't be passed by reference. We ran into a similar problem in our custom code here. To work around it I modified Debug.h like this: #ifdef NDEBUG static llvm::OStream NullStream(0); #define DOUT llvm::NullStream #else #define DOUT llvm::getErrorOutputStream(DEBUG_TYPE) #endif -Dave
2007 Sep 24
4
[LLVMdev] Compilation Failure
On Sep 24, 2007, at 3:15 PM, Dale Johannesen wrote: > > On Sep 24, 2007, at 3:07 PM, Bill Wendling wrote: > >> A debug or release build? >> >> -bw > > Both, actually. Weird. I see a potential problem, though. The code is like this: void dumpToDOUT(SparseBitVector<> *bitmap) { dump(*bitmap, DOUT); } where dump expects an llvm::OStream& for the
2007 Sep 25
2
[LLVMdev] Compilation Failure
Hi Dave, > We ran into a similar problem in our custom code here. To work around > it I modified Debug.h like this: > > #ifdef NDEBUG > static llvm::OStream NullStream(0); > #define DOUT llvm::NullStream > #else > #define DOUT llvm::getErrorOutputStream(DEBUG_TYPE) > #endif > I thought about doing this, but there's the potential for naming conflicts that won't be caught until a release build is done. :-( I wonder, though. Would it make sense to put the stream decls in their own namespace (say "namespace stream")? That way w...