search for: basic_ostream

Displaying 20 results from an estimated 87 matches for "basic_ostream".

2004 Jul 06
1
[LLVMdev] AsmWriter.cpp:255: error: ambiguous overload for `std::basic_ostream<char,...
...eam&, const llvm::Constant*, bool, std::map<const llvm::Type*, std::string, std::less<const llvm::Type*>, std::allocator<std::pair<const llvm::Type* const, std::string> > >&, llvm::SlotCalculator*)': AsmWriter.cpp:255: error: ambiguous overload for `std::basic_ostream<char, std::char_traits<char> >& << int64_t' operator /opt/gcc.3.3/include/c++/3.3/bits/ostream.tcc:63: error: candidates are: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT,...
2004 Jul 06
2
[LLVMdev] AsmWriter.cpp:255: error: ambiguous overload for `std::basic_ostream<char,...
...elif _MSC_VER typedef __int64 quad_t; typedef unsigned __int64 u_quad_t; typedef __int64 int64_t; typedef unsigned __int64 u_int64_t; #endif /*__GNUC__*/ This tweak seems to work. As far as I can see, correct me if I'm wrong, it is the compiler, that can't figure out which std::basic_ostream to use. Why? > >It appears that your libstdc++ does not support insertion of 64-bit >integers into iostreams. Did I mention that you should try cygwin? ;-) > >-Chris > > > > gmake[2]: Entering directory `/usr/local/src/llvm/lib/VMCore' > > Compiling AsmWriter...
2004 Jul 06
0
[LLVMdev] AsmWriter.cpp:255: error: ambiguous overload for `std::basic_ostream<char,...
On Wed, 7 Jul 2004, Henrik Bach wrote: > This tweak seems to work. > > As far as I can see, correct me if I'm wrong, it is the compiler, that can't > figure out which std::basic_ostream to use. Why? What I'm saying is that it appears that your implementation of operator<< is not functional or is missing. You said that you are using GCC on internix. Is it possible that when you configured/built gcc that it didn't find 64-bit integer support and disabled it or somet...
2015 Aug 28
0
errors Interix 3.5 / xapian-core-1.2.21 / Eric Lindblad
.../brass/.libs/brass_check.o ../backends/brass/brass_check.cc: In static member function `static void BrassTableCheck::check(const char*, const std::string&, brass_revision_number_t*, int, std::ostream&)': ../backends/brass/brass_check.cc:216: error: ambiguous overload for ` std::basic_ostream<char, std::char_traits<char> >& << brass_tablesize_t&' operator /opt/gcc.3.3/include/c++/3.3/bits/ostream.tcc:63: error: candidates are: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostre...
2004 Jul 07
1
[LLVMdev] AsmWriter.cpp:255: error: ambiguous overload for `std::basic_ostream<char,...
...he definition of int64_t. Note that the message from the compiler is not >>"can't find overload" but it is "ambiguous overload". It provides what it >>thinks is a close match, that being an operator<< that takes a pointer to >>a function returning basic_ostream<char>& and taken basic_ostream<char>& >>as an argument. Why would it attempt to match an int64_t with a function >>pointer? >> >>Reid. >> >>On Tue, 6 Jul 2004 17:48:17 -0500 (CDT) >> Chris Lattner <sabre at nondot.org> wrote: &g...
2015 Sep 05
1
question / errors Interix 3.5 / xapian-core-1.2.21 / Eric Lindblad
.../brass/.libs/brass_check.o ../backends/brass/brass_check.cc: In static member function `static void BrassTableCheck::check(const char*, const std::string&, brass_revision_number_t*, int, std::ostream&)': ../backends/brass/brass_check.cc:216: error: ambiguous overload for ` std::basic_ostream<char, std::char_traits<char> >& << brass_tablesize_t&' operator /opt/gcc.3.3/include/c++/3.3/bits/ostream.tcc:63: error: candidates are: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostre...
2004 Jul 07
0
[LLVMdev] AsmWriter.cpp:255: error: ambiguous overload for `std::basic_ostream<char,...
...with >the definition of int64_t. Note that the message from the compiler is not >"can't find overload" but it is "ambiguous overload". It provides what it >thinks is a close match, that being an operator<< that takes a pointer to a >function returning basic_ostream<char>& and taken basic_ostream<char>& as >an argument. Why would it attempt to match an int64_t with a function >pointer? > >Reid. > >On Tue, 6 Jul 2004 17:48:17 -0500 (CDT) > Chris Lattner <sabre at nondot.org> wrote: >>On Wed, 7 Jul 2004, He...
2008 Feb 02
0
[LLVMdev] another llvm-gcc-4.2 compilation problem
...: ../llvm-gcc/configure --prefix=/usr --enable-llvm=/usr --enable-languages=c,c++ --disable-shared --disable-multilib --disable-bootstrap this error occurs during link time : libbackend.a(llvm-backend.o):(.rodata._ZTC11oFILEstream0_So[vtable for oFILEstream]+0xc): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::~basic_ostream()' libbackend.a(llvm-backend.o):(.rodata._ZTC11oFILEstream0_So[vtable for oFILEstream]+0x10): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::~basic_ostream()' libbackend.a(llvm-backend.o):(.ro...
2009 Apr 28
3
[LLVMdev] how to resolve llvm exception IR?
...bel %lpad 53 54 invcont: ; preds = %entry 55 unreachable 56 57 bb: ; preds = %lpad 58 %2 = tail call i8* @__cxa_begin_catch(i8* %eh_ptr) nounwind ; <i8*> [#uses=0] 59 %3 = invoke %"struct.std::basic_ostream<char,std::char_traits<char> >"* @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(%"struct.std::basic_ostream<char,std::char_traits<char> >"* @_ZSt4cout, i8* getelementptr ([10 x i8]* @.str, i32 0, i32 0)) 60 to label %bb6 u...
2016 Jan 28
2
Find the instructions where a particular value is defined
...nd 72 73 if.end: ; preds = %if.then.3, %if.else 74 br label %if.end.4 75 76 if.end.4: ; preds = %if.end, %if.then 77 %2 = load i32, i32* %a, align 4 78 %call5 = call dereferenceable(272) %"class.std::basic_ostream"* @_ZNSolsEi(%"class.std::basic_ostream"* @_ZSt4cout, i32 %2) 79 %3 = load i32, i32* %b, align 4 80 %call6 = call dereferenceable(272) %"class.std::basic_ostream"* @_ZNSolsEi(%"class.std::basic_ostream"* %call5, i32 %3) 81 ret i32 0 at line 79 of the IR...
2017 Jul 29
2
Storing "blockaddress(@function, %block)" in a global variable?
Hi, The LangRef warns that "blockaddress(@function, %block)" has a limited and target-dependent applicability: https://llvm.org/docs/LangRef.html#addresses-of-basic-blocks But I wanted very much to save addresses of blocks in a global variable and so I did: % cat cond.c void foo(long *a) { if (a) *a = 0; } % clang -O1 -c cond.c -fsanitize-coverage=inline-8bit-counters,pc-table -S
2004 Jul 06
0
[LLVMdev] AsmWriter.cpp:255: error: ambiguous overload for `std::basic_ostream<char,...
> >It appears that your libstdc++ does not support insertion of 64-bit >integers into iostreams. Did I mention that you should try cygwin? ;-) > >-Chris > Hmmmm :-) /Henrik _________________________________________________________________ F� alle de nye og sjove ikoner med MSN Messenger http://www.msn.dk/messenger
2009 Apr 28
0
[LLVMdev] how to resolve llvm exception IR?
Hi zhangzw, ... > 59 %3 = invoke > %"struct.std::basic_ostream<char,std::char_traits<char> >"* > @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(%"struct.std::basic_ostream<char,std::char_traits<char> > >"* @_ZSt4cout, i8* getelementptr ([10 x i8]* @.str, i32 0, i32 0)) > 60...
2006 Nov 17
0
[LLVMdev] C++ to C
On Fri, 17 Nov 2006, Mohd-Hanafiah Abdullah wrote: > After converting a piece of C++ code to C one of the functions that are > generated is this: > _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc This is defined in the C++ standard library. You can get the demangled name like so: $ c++filt _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::b...
2006 Nov 17
2
[LLVMdev] C++ to C
On Thu, 2006-11-16 at 21:08 -0800, Chris Lattner wrote: > On Fri, 17 Nov 2006, Mohd-Hanafiah Abdullah wrote: > > After converting a piece of C++ code to C one of the functions that are > > generated is this: > > _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc > > This is defined in the C++ standard library. You can get the demangled > name like so: > $ c++filt _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc > std::basic_ostream<char, std::char_traits<char> >& std::operator<< > <std::char_...
2003 Dec 22
2
[LLVMdev] hello.bc & binary code
...: Found global types that are not compatible: [144 x sbyte]* %_ZSt3cin "struct.std::basic_istream<char,std::char_traits<char> >"* %_ZSt3cin WARNING: Found global types that are not compatible: [140 x sbyte]* %_ZSt4cerr "struct.std::basic_ostream<char,std::char_traits<char> >"* %_ZSt4cerr WARNING: Found global types that are not compatible: [140 x sbyte]* %_ZSt4clog "struct.std::basic_ostream<char,std::char_traits<char> >"* %_ZSt4clog WARNING: Found global types that are not compa...
2017 May 24
2
DebugInfo, Metadata usage
...metadata is empty. The way, I could get metadata as mentioned in Verifier , is not working for Constants that are not created as Local Variables. I've tried to get the info via Users of that Value, but it wasn't working either. %call39 = invoke dereferenceable(160) %"class.std::__1::basic_ostream.13"* @_ZNSt3__1lsIwNS_11char_traitsIwEEEERNS_13basic_ostreamIT_T0_EES7_PKS4_(%"class.std::__1::basic_ostream.13"* dereferenceable(160) @_ZNSt3__15wcoutE, i32* getelementptr inbounds ([17 x i32], [17 x i32]* @.str.2, i32 0, i32 0)) to label %invoke.cont38 unwind label %lpad5...
2009 Dec 08
4
[LLVMdev] A question about 'llc -march=c'
...ing types for built-in function ‘malloc’ testcc.cbe.c: In function ‘main’: testcc.cbe.c:356: warning: return type of ‘main’ is not ‘int’ /tmp/ccDcoA7R.o: In function `main': testcc.cbe.c:(.text+0x33): undefined reference to `std::cout' testcc.cbe.c:(.text+0x38): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)' testcc.cbe.c:(.text+0x42): undefined reference to `std::cout' testcc.cbe.c:(.text+0x47): un...
2006 Nov 17
4
[LLVMdev] C++ to C
After converting a piece of C++ code to C one of the functions that are generated is this: _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc Where is it defined and where can I find the source for it? I need the source to compile it with a C compiler (AMPC) that will convert the C code to Java Bytecode. If the above function is in C++ then I need to convert it to C first. Here's the code segment that uses the function...
2018 Aug 10
2
[cfe-dev] Filesystem has Landed in Libc++
...return file_time<Duration>{from_sys(sys_time<Duration>{t.time_since_epoch()})}; } file_clock::time_point file_clock::now() { return from_sys(std::chrono::system_clock::now()); } template <class CharT, class Traits, class Duration> std::basic_ostream<CharT, Traits>& to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt, const file_time<Duration>& t) { using namespace std::chrono; const std::string abbrev("UTC"); constexpr std::chrono::seconds offse...