search for: getstdin

Displaying 5 results from an estimated 5 matches for "getstdin".

2013 Jan 15
2
[LLVMdev] Need some brief explanation about llvm::MemoryBuffer and llvm::SourceMgr
...with the LLVM APIs. This info helps me a lot. I tried to do a thing that is not possible. Thank you very much. Sincerely Journeyer 2013/1/15 Justin Holewinski <justin.holewinski at gmail.com>: > Is this for user prompts, or just reading data from stdin? You can use > MemoryBuffer::getSTDIN to read the contents of stdin into a memory buffer. > Then you can get the data pointer and size and read it in. As far as I > know, there is not a good way to implement user prompts with the LLVM APIs. > > > On Mon, Jan 14, 2013 at 4:57 AM, Journeyer J. Joh <oosaprogrammer at gm...
2013 Jan 14
0
[LLVMdev] Need some brief explanation about llvm::MemoryBuffer and llvm::SourceMgr
Is this for user prompts, or just reading data from stdin? You can use MemoryBuffer::getSTDIN to read the contents of stdin into a memory buffer. Then you can get the data pointer and size and read it in. As far as I know, there is not a good way to implement user prompts with the LLVM APIs. On Mon, Jan 14, 2013 at 4:57 AM, Journeyer J. Joh <oosaprogrammer at gmail.com>wrote: &gt...
2013 Jan 14
2
[LLVMdev] Need some brief explanation about llvm::MemoryBuffer and llvm::SourceMgr
Hello list, I learned that under LLVM, #including of <iostream> is forbidden. Instead LLVM provides llvm::raw_ostream(for std::cout, std::cerr) and llvm::MemoryBuffer(for input stream). And using of llvm::raw_ostream is pretty easy but for me learning of how to use llvm::MemoryBuffer is pretty much difficult. I found a good sample code; utils/yaml2obj/yaml2obj.cpp. The function, main() in
2013 Jan 15
0
[LLVMdev] Need some brief explanation about llvm::MemoryBuffer and llvm::SourceMgr
...t. > I tried to do a thing that is not possible. > > Thank you very much. > > Sincerely > Journeyer > > 2013/1/15 Justin Holewinski <justin.holewinski at gmail.com>: >> Is this for user prompts, or just reading data from stdin? You can use >> MemoryBuffer::getSTDIN to read the contents of stdin into a memory buffer. >> Then you can get the data pointer and size and read it in. As far as I >> know, there is not a good way to implement user prompts with the LLVM APIs. >> >> >> On Mon, Jan 14, 2013 at 4:57 AM, Journeyer J. Joh <...
2009 Oct 07
0
[LLVMdev] patch for CIndex linakge error on Mingw, set the proper LINKER_LANGUAGE for CIndex and c-index-test
...ib\libclangFrontend.a(PCHReader.cpp.obj):PCHReader.cpp:(.text+0x61ed): undefined reference to `llvm::MemoryBuffer::getMemBuffer(char const*, char const*, char const*)' ..\..\..\..\lib\libclangFrontend.a(PCHReader.cpp.obj):PCHReader.cpp:(.text+0x79d0): undefined reference to `llvm::MemoryBuffer::getSTDIN()' ..\..\..\..\lib\libclangFrontend.a(PCHReader.cpp.obj):PCHReader.cpp:(.text+0x7a11): undefined reference to `llvm::MemoryBuffer::getFile(char const*, std::string*, long long)' ..\..\..\..\lib\libclangFrontend.a(PCHReader.cpp.obj):PCHReader.cpp:(.text+0x860c): undefined refer ....... And m...